Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add support for mac timestamp header comm…
Browse files Browse the repository at this point in the history
  • Loading branch information
laxmikantchintakindi authored Nov 7, 2024
1 parent 8502431 commit f22b002
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ interface Ethernet63
interface Ethernet64
description DHCP server interface
no switchport
mac timestamp replace-fcs
ip address 192.168.42.42/24
dhcp server ipv4
dhcp server ipv6
Expand All @@ -1049,6 +1050,7 @@ interface Ethernet65
description Multiple VRIDs
no shutdown
no switchport
mac timestamp header
ip address 192.0.2.2/25
ipv6 enable
ipv6 address 2001:db8::2/64
Expand Down Expand Up @@ -1085,6 +1087,7 @@ interface Ethernet67
description Custom_Transceiver_Frequency
no shutdown
switchport
mac timestamp before-fcs
transceiver frequency 190050.000
!
interface Ethernet67.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ interface Ethernet63
interface Ethernet64
description DHCP server interface
no switchport
mac timestamp replace-fcs
ip address 192.168.42.42/24
dhcp server ipv4
dhcp server ipv6
Expand All @@ -664,6 +665,7 @@ interface Ethernet65
description Multiple VRIDs
no shutdown
no switchport
mac timestamp header
ip address 192.0.2.2/25
ipv6 enable
ipv6 address 2001:db8::2/64
Expand Down Expand Up @@ -700,6 +702,7 @@ interface Ethernet67
description Custom_Transceiver_Frequency
no shutdown
switchport
mac timestamp before-fcs
transceiver frequency 190050.000
!
interface Ethernet67.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ ethernet_interfaces:
ip_address: 192.168.42.42/24
dhcp_server_ipv4: true
dhcp_server_ipv6: true
mac_timestamp: replace-fcs

- name: Ethernet69
switchport:
Expand All @@ -1163,6 +1164,7 @@ ethernet_interfaces:
ipv6_enable: true
ipv6_address: 2001:db8::2/64
ipv6_address_link_local: fe80::2/64
mac_timestamp: header
vrrp_ids:
- id: 1
priority_level: 105
Expand Down Expand Up @@ -1236,6 +1238,7 @@ ethernet_interfaces:
shutdown: false
transceiver:
frequency: 190050
mac_timestamp: before-fcs

- name: Ethernet67.1
description: Test_encapsulation_dot1q
Expand Down

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 @@ -302,6 +302,9 @@ interface {{ ethernet_interface.name }}
{% if ethernet_interface.l2_protocol.encapsulation_dot1q_vlan is arista.avd.defined %}
l2-protocol encapsulation dot1q vlan {{ ethernet_interface.l2_protocol.encapsulation_dot1q_vlan }}
{% endif %}
{% if ethernet_interface.mac_timestamp is arista.avd.defined %}
mac timestamp {{ ethernet_interface.mac_timestamp }}
{% endif %}
{% if ethernet_interface.evpn_ethernet_segment is arista.avd.defined %}
!
evpn ethernet-segment
Expand Down

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 @@ -116,6 +116,13 @@ keys:
forwarding_profile:
type: str
description: L2 protocol forwarding profile.
mac_timestamp:
type: str
valid_values: ["before-fcs", "replace-fcs", "header"]
description: |-
header: Insert timestamp in ethernet header. Supported on platforms like 7500E/R and 7280E/R.
before-fcs: Insert timestamp before fcs field. Supported on platforms like 7150.
replace-fcs: Replace fcs field with timestamp.
trunk_groups:
type: list
items:
Expand Down

0 comments on commit f22b002

Please sign in to comment.