Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Aug 6, 2024
1 parent b22e816 commit 7c5221f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,7 @@ def ptp(self) -> dict | None:
raise AristaAvdMissingVariableError(msg)

priority2 = self.shared_utils.id % 256
default_auto_clock_identity = default(
get(self._hostvars, "ptp_settings.auto_clock_identity"),
True, # noqa: FBT003
)
default_auto_clock_identity = get(self._hostvars, "ptp_settings.auto_clock_identity", default=True)
if get(self.shared_utils.switch_data_combined, "ptp.auto_clock_identity", default=default_auto_clock_identity) is True:
clock_identity_prefix = get(self.shared_utils.switch_data_combined, "ptp.clock_identity_prefix", default="00:1C:73")
default_clock_identity = f"{clock_identity_prefix}:{priority1:02x}:00:{priority2:02x}"
Expand Down

0 comments on commit 7c5221f

Please sign in to comment.