Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 21, 2024
1 parent c47744a commit f029801
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ def _get_ethernet_cfg(self: AvdStructuredConfigCoreInterfacesAndL3Edge, p2p_link
"""
ethernet_cfg = {"speed": p2p_link.get("speed")}

if get(p2p_link, "port_channel") is None and get(p2p_link, "ptp.enabled") is True:
if ptp_config := self._get_interface_ptp_config(p2p_link):
ethernet_cfg["ptp"] = ptp_config
if get(p2p_link, "port_channel") is not None:
return ethernet_cfg

if get(p2p_link, "ptp.enabled") is True and (ptp_config := self._get_interface_ptp_config(p2p_link)):
ethernet_cfg["ptp"] = ptp_config

return ethernet_cfg

Expand Down

0 comments on commit f029801

Please sign in to comment.