Skip to content

Commit

Permalink
Fixing vlan interface cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 19, 2024
1 parent ff84e78 commit f132a24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ underlay_routing_protocol: isis
underlay_isis_authentication_mode: md5
underlay_isis_authentication_key: $1c$sTNAlR6rKSw=


type: l3leaf

l3leaf:
Expand Down
16 changes: 9 additions & 7 deletions python-avd/pyavd/_eos_designs/structured_config/mlag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,18 @@ def vlan_interfaces(self) -> list | None:
"isis_bfd": get(self._hostvars, "underlay_isis_bfd"),
"isis_metric": 50,
"isis_network_point_to_point": True,
"isis_authentication": {
"both": {
"mode": get(self._hostvars, "underlay_isis_authentication_mode"),
"key": get(self._hostvars, "underlay_isis_authentication_key"),
"key_type": "7",
}
},
}
)
if (isis_authentication_mode := get(self._hostvars, "underlay_isis_authentication_mode")) is not None:
l3_cfg.setdefault("isis_authentication", {}).setdefault("both", {})["mode"] = isis_authentication_mode

if (isis_authentication_key := get(self._hostvars, "underlay_isis_authentication_key")) is not None:
l3_cfg.setdefault("isis_authentication", {}).setdefault("both", {}).update(
{
"key": isis_authentication_key,
"key_type": "7",
}
)
if self.shared_utils.underlay_multicast:
l3_cfg["pim"] = {"ipv4": {"sparse_mode": True}}

Expand Down

0 comments on commit f132a24

Please sign in to comment.