Skip to content

Commit

Permalink
Refactor(eos_cli_config_gen)!: Removing default type: switched from e…
Browse files Browse the repository at this point in the history
…thernet and port-channel interfaces (#4355)
  • Loading branch information
Shivani-gslab authored Aug 13, 2024
1 parent a582a3e commit 35547f4
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ interface Management1

| Interface | Description | Mode | VLANs | Native VLAN | Trunk Group | Channel-Group |
| --------- | ----------- | ---- | ----- | ----------- | ----------- | ------------- |
| Ethernet3 | MLAG_PEER_EAPI-LEAF1B_Ethernet3 | *access | *- | *- | *- | 3 |

*Inherited from Port-Channel Interface

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ interface Management1

| Interface | Description | Mode | VLANs | Native VLAN | Trunk Group | Channel-Group |
| --------- | ----------- | ---- | ----- | ----------- | ----------- | ------------- |
| Ethernet3 | MLAG_PEER_EAPI-LEAF1B_Ethernet3 | *access | *- | *- | *- | 3 |

*Inherited from Port-Channel Interface

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ address_locking:

ethernet_interfaces:
- name: Ethernet1
type: switched
description: Address Locking Interface Testing 1
address_locking:
ipv4: true

- name: Ethernet2
type: switched
description: Address Locking Interface Testing 2
address_locking:
ipv4: true
ipv6: true

- name: Ethernet3
type: switched
description: Address Locking Interface Testing 3
address_locking:
ipv4: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ ethernet_interfaces:
version: 2

- name: Ethernet2
type: switched
peer: SRV-POD03
peer_interface: Eth1
peer_type: server
Expand Down Expand Up @@ -343,6 +344,7 @@ ethernet_interfaces:
vlan: 70

- name: Ethernet14
type: switched
logging:
event:
link_status: true
Expand All @@ -354,12 +356,14 @@ ethernet_interfaces:
vlans: 110-111,210-211

- name: Ethernet15
type: switched
description: PVLAN Promiscuous Access - only one secondary
mode: access
vlans: 110
pvlan_mapping: 111

- name: Ethernet16
type: switched
description: PVLAN Promiscuous Trunk - vlan translation out
mode: trunk
vlans: 110-112
Expand All @@ -369,6 +373,7 @@ ethernet_interfaces:
to: 110

- name: Ethernet17
type: switched
description: PVLAN Secondary Trunk
mode: trunk
vlans: 110-112
Expand All @@ -384,6 +389,7 @@ ethernet_interfaces:
input: MyLANServicePolicy

- name: Ethernet19
type: switched
description: Switched port with no LLDP rx/tx
mode: access
vlans: 110
Expand All @@ -400,29 +406,34 @@ ethernet_interfaces:
receive: false

- name: Ethernet21
type: switched
description: 200MBit/s shape
qos:
trust: disabled
shape:
rate: "200000 kbps"

- name: Ethernet22
type: switched
description: 10% shape
shape:
rate: "10 percent"

- name: Ethernet23
type: switched
description: Error-correction encoding
error_correction_encoding:
fire_code: true
reed_solomon: true

- name: Ethernet24
type: switched
description: Disable error-correction encoding
error_correction_encoding:
enabled: false

- name: Ethernet25
type: switched
description: Molecule MAC
mac_access_group_in: MAC_ACL_IN
mac_access_group_out: MAC_ACL_OUT
Expand Down Expand Up @@ -485,6 +496,7 @@ ethernet_interfaces:
client: true

- name: Ethernet27
type: switched
description: EVPN-Vxlan single-active redundancy
evpn_ethernet_segment:
identifier: "0000:0000:0000:0102:0304"
Expand All @@ -498,6 +510,7 @@ ethernet_interfaces:
candidate_reachability_required: true

- name: Ethernet28
type: switched
description: EVPN-MPLS multihoming
evpn_ethernet_segment:
identifier: "0000:0000:0000:0102:0305"
Expand All @@ -507,81 +520,94 @@ ethernet_interfaces:
tunnel_flood_filter_time: 100

- name: Ethernet29
type: switched
description: DOT1X Testing - auto phone true
dot1x:
port_control: auto
port_control_force_authorized_phone: true

- name: Ethernet30
type: switched
description: DOT1X Testing - force-authorized phone false
dot1x:
port_control: force-authorized
port_control_force_authorized_phone: false

- name: Ethernet31
type: switched
description: DOT1X Testing - force-unauthorized - no phone
dot1x:
port_control: force-unauthorized

- name: Ethernet32
type: switched
description: DOT1X Testing - auto reauthentication
dot1x:
port_control: auto
reauthentication: true

- name: Ethernet33
type: switched
description: DOT1X Testing - pae mode authenticator
dot1x:
pae:
mode: authenticator

- name: Ethernet34
type: switched
description: DOT1X Testing - authentication_failure allow
dot1x:
authentication_failure:
action: allow
allow_vlan: 800

- name: Ethernet35
type: switched
description: DOT1X Testing - authentication_failure drop
dot1x:
authentication_failure:
action: drop

- name: Ethernet36
type: switched
description: DOT1X Testing - host-mode single-host
dot1x:
host_mode:
mode: single-host

- name: Ethernet37
type: switched
description: DOT1X Testing - host-mode multi-host
dot1x:
host_mode:
mode: multi-host

- name: Ethernet38
type: switched
description: DOT1X Testing - host-mode multi-host authenticated
dot1x:
host_mode:
mode: multi-host
multi_host_authenticated: true

- name: Ethernet39
type: switched
description: DOT1X Testing - mac_based_authentication host-mode common true
dot1x:
mac_based_authentication:
enabled: true
host_mode_common: true

- name: Ethernet40
type: switched
description: DOT1X Testing - mac_based_authentication always
dot1x:
mac_based_authentication:
enabled: true
always: true

- name: Ethernet41
type: switched
description: DOT1X Testing - mac_based_authentication always and host-mode common
dot1x:
mac_based_authentication:
Expand All @@ -590,12 +616,14 @@ ethernet_interfaces:
host_mode_common: true

- name: Ethernet42
type: switched
description: DOT1X Testing - mac_based_authentication
dot1x:
mac_based_authentication:
enabled: true

- name: Ethernet43
type: switched
description: DOT1X Testing - timeout values
dot1x:
timeout:
Expand All @@ -606,13 +634,15 @@ ethernet_interfaces:
tx_period: 6

- name: Ethernet44
type: switched
description: DOT1X Testing - reauthorization_request_limit
dot1x:
reauthorization_request_limit: 3
eapol:
disabled: true

- name: Ethernet45
type: switched
description: DOT1X Testing - all features
dot1x:
port_control: auto
Expand Down Expand Up @@ -644,6 +674,7 @@ ethernet_interfaces:
native_vlan_membership_egress: true

- name: Ethernet46
type: switched
description: native-vlan-tag-precedence
native_vlan_tag: true
native_vlan: 100
Expand All @@ -669,31 +700,36 @@ ethernet_interfaces:
load_interval: 5

- name: Ethernet50
type: switched
description: SFlow Interface Testing - SFlow ingress enabled
sflow:
enable: true

- name: Ethernet51
type: switched
description: SFlow Interface Testing - SFlow egress enabled
sflow:
egress:
enable: true

- name: Ethernet52
type: switched
description: SFlow Interface Testing - SFlow ingress and egress unmodified enabled
sflow:
enable: true
egress:
unmodified_enable: true

- name: Ethernet53
type: switched
description: SFlow Interface Testing - SFlow ingress and egress disabled
sflow:
enable: false
egress:
enable: false

- name: Ethernet54
type: switched
description: SFlow Interface Testing - SFlow ingress and egress unmodified disabled
sflow:
enable: false
Expand All @@ -714,6 +750,7 @@ ethernet_interfaces:
local_interface: Loopback55

- name: Ethernet56
type: switched
description: Interface with poe commands and limit in class
poe:
priority: low
Expand All @@ -730,6 +767,7 @@ ethernet_interfaces:
negotiation_lldp: false

- name: Ethernet57
type: switched
description: Interface with poe commands and limit in watts
poe:
disabled: false
Expand All @@ -747,11 +785,13 @@ ethernet_interfaces:
negotiation_lldp: true

- name: Ethernet58
type: switched
description: Interface with poe disabled and no other poe keys
poe:
disabled: true

- name: Ethernet60
type: switched
description: IP NAT Testing
ip_nat:
destination:
Expand Down Expand Up @@ -933,6 +973,7 @@ ethernet_interfaces:
dhcp_server_ipv6: true

- name: Ethernet69
type: switched
description: IP NAT service-profile
ip_nat:
service_profile: TEST-NAT-PROFILE
Expand Down Expand Up @@ -1011,11 +1052,14 @@ ethernet_interfaces:
version: 3
# Transceiver Frequency
- name: Ethernet67
type: switched
description: Custom_Transceiver_Frequency
shutdown: false
transceiver:
frequency: 190050

- name: Ethernet68
type: switched
description: Custom_Transceiver_Frequency
shutdown: false
transceiver:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,23 @@ flow_tracking:
format_ipfix_standard_timestamps_counters: true
ethernet_interfaces:
- name: Ethernet40
type: switched
flow_tracker:
sampled: T2
hardware: T2
- name: Ethernet41
type: switched
flow_tracker:
sampled: T3
hardware: T3
- name: Ethernet42
type: switched
flow_tracker:
sampled: T3

port_channel_interfaces:
- name: Port-Channel42
type: switched
flow_tracker:
sampled: T3
hardware: T3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ l2_protocol:

ethernet_interfaces:
- name: Ethernet1
type: switched
description: L2PF test
l2_protocol:
forwarding_profile: TEST1

port_channel_interfaces:
- name: Port-Channel1
type: switched
description: L2PF test
l2_protocol:
forwarding_profile: TEST2
Loading

0 comments on commit 35547f4

Please sign in to comment.