Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 18, 2024
1 parent 6022984 commit d0ab43c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,14 @@ def _get_common_interface_cfg(self: AvdStructuredConfigCoreInterfacesAndL3Edge,
"isis_circuit_type": default(p2p_link.get("isis_circuit_type"), self.shared_utils.isis_default_circuit_type),
},
)
if (isis_authentication_mode := default(p2p_link.get("isis_authentication_mode"), get(self._hostvars, "underlay_isis_authentication_mode"))) is not None:
if (
isis_authentication_mode := default(p2p_link.get("isis_authentication_mode"), get(self._hostvars, "underlay_isis_authentication_mode"))
) is not None:
interface_cfg.setdefault("isis_authentication", {}).setdefault("both", {})["mode"] = isis_authentication_mode

if (isis_authentication_key := default(p2p_link.get("isis_authentication_key"), get(self._hostvars, "underlay_isis_authentication_key"))) is not None:
if (
isis_authentication_key := default(p2p_link.get("isis_authentication_key"), get(self._hostvars, "underlay_isis_authentication_key"))
) is not None:
interface_cfg.setdefault("isis_authentication", {}).setdefault("both", {}).update(
{
"key": isis_authentication_key,
Expand Down

0 comments on commit d0ab43c

Please sign in to comment.