Page MenuHomeDevCentral

Read the CARP peer parameter from pillar
ClosedPublic

Authored by yousra on Mar 18 2026, 13:35.
Tags
None
Referenced Files
F27591571: D4009.id10465.diff
Tue, May 5, 17:04
F27587229: D4009.id10463.diff
Tue, May 5, 15:52
F27578230: D4009.diff
Tue, May 5, 13:29
Unknown Object (File)
Sun, May 3, 19:27
Unknown Object (File)
Sat, May 2, 20:18
Unknown Object (File)
Mon, Apr 27, 01:03
Unknown Object (File)
Wed, Apr 22, 07:22
Unknown Object (File)
Tue, Apr 21, 18:04

Details

Summary

Parameter is optional.

Ref T2274

Test Plan

Tested the function (get_carp_entries) with CARP entries containing a peer

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
test-node.py-peer
Build Status
Buildable 6494
Build 6778: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Mar 18 2026, 13:35
yousra created this revision.
dereckson retitled this revision from Update get_carp_entries in _modules/node.py to read the optional CARP peer parameter from pillar to Read the CARP peer parameter from pillar.Mar 18 2026, 19:38
dereckson edited the summary of this revision. (Show Details)
_modules/node.py
523
537

Can be simplified in Python 3.8+:

if peer := fhrp.get("peer"):
    entry["peer"] = peer

Reference: https://docs.python.org/3/whatsnew/3.8.html#assignment-expressions

Simplified in Python 3.8+ :

if peer := fhrp.get("peer"):

entry["peer"] = peer
This revision is now accepted and ready to land.Mar 19 2026, 18:09
This revision was automatically updated to reflect the committed changes.