Skip to content

Commit

Permalink
Moving inputs to ethernet interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 5, 2024
1 parent b389f02 commit 580f192
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 11 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 Down Expand Up @@ -1086,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 Down Expand Up @@ -701,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,7 +1164,7 @@ ethernet_interfaces:
ipv6_enable: true
ipv6_address: 2001:db8::2/64
ipv6_address_link_local: fe80::2/64
mac_timestamp_header: true
mac_timestamp: header
vrrp_ids:
- id: 1
priority_level: 105
Expand Down Expand Up @@ -1237,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,8 +302,14 @@ 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_header is arista.avd.defined(true) %}
{% if ethernet_interface.mac_timestamp is arista.avd.defined %}
{% if ethernet_interface.mac_timestamp == "header" %}
mac timestamp header
{% elif ethernet_interface.mac_timestamp == "before-fcs" %}
mac timestamp before-fcs
{% elif ethernet_interface.mac_timestamp == "replace-fcs" %}
mac timestamp replace-fcs
{% endif %}
{% endif %}
{% if ethernet_interface.evpn_ethernet_segment is arista.avd.defined %}
!
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,9 +116,13 @@ keys:
forwarding_profile:
type: str
description: L2 protocol forwarding profile.
mac_timestamp_header:
type: bool
description: Insert timestamp in ethernet header.
mac_timestamp:
type: str
valid_values: ["before-fcs", "replace-fcs", "header"]
description: |-
header: Insert timestamp in ethernet header. Supports on platforms like 7500E/R and 7280E/R.
before-fcs: Insert timestamp before fcs field. Support on platforms like 7150.
replace-fcs: Replace fcs field with timestamp.
trunk_groups:
type: list
items:
Expand Down

0 comments on commit 580f192

Please sign in to comment.