Skip to content

Commit

Permalink
Replace bmca to dynamic in connected endpoints role
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 15, 2024
1 parent 4b1fa02 commit ab63faf
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ interface Ethernet12
channel-group 12 mode active
!
interface Ethernet13
description SERVER_bmca-endpoint_eth1
description SERVER_dynamic-endpoint_eth1
no shutdown
switchport access vlan 11
switchport mode access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ ethernet_interfaces:
id: 14
mode: active
- name: Ethernet13
peer: bmca-endpoint
peer: dynamic-endpoint
peer_interface: eth1
peer_type: server
port_profile: PTP-profile-BMCA
description: SERVER_bmca-endpoint_eth1
port_profile: PTP-profile-dynamic
description: SERVER_dynamic-endpoint_eth1
shutdown: false
switchport:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ tenants:
ip_address: 172.17.11.1/24

port_profiles:
- profile: PTP-profile-BMCA
- profile: PTP-profile-dynamic
vlans: 11
mode: access
ptp:
enabled: true
endpoint_role: bmca
endpoint_role: dynamic

servers:
- name: bmca-endpoint
- name: dynamic-endpoint
adapters:
- endpoint_ports: [ eth1 ]
switch_ports: [ Ethernet13 ]
switches: [ ptp-tests-leaf1 ]
profile: PTP-profile-BMCA
profile: PTP-profile-dynamic

- name: video-endpoint
adapters:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions python-avd/pyavd/_eos_designs/schema/eos_designs.schema.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ $defs:
default: false
endpoint_role:
type: str
description: Set `dynamic` instead of `bmca`(deprecated).
default: "follower"
valid_values:
- "bmca"
- "default"
- "follower"
- "dynamic"
profile:
type: str
default: "aes67-r16-2016"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _get_adapter_ptp(self: AvdStructuredConfigConnectedEndpoints, adapter: dict)

ptp_config["enable"] = True

if get(adapter, "ptp.endpoint_role") != "bmca":
if get(adapter, "ptp.endpoint_role") != "dynamic":
ptp_config["role"] = "master"

ptp_config.pop("profile", None)
Expand Down

0 comments on commit ab63faf

Please sign in to comment.