Skip to content

Commit

Permalink
Feat(eos_designs): Adding port_channel_id as option for endpoint ethe…
Browse files Browse the repository at this point in the history
…rnet description (#4667)

Co-authored-by: Guillaume Mulocher <[email protected]>
  • Loading branch information
bjmeuer and gmuloc authored Oct 30, 2024
1 parent 98a2a42 commit b1cd751
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ interface Port-Channel1007
mlag 1007
!
interface Port-Channel1291
description server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
description SERVER_server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
no shutdown
switchport access vlan 110
switchport mode access
Expand Down Expand Up @@ -531,7 +531,7 @@ interface Ethernet28
switchport
!
interface Ethernet29
description server22_port_channel_with_custom_id_Eth1
description SERVER_server22_port_channel_with_custom_id_Po1291
no shutdown
channel-group 1291 mode active
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ interface Port-Channel1007
mlag 1007
!
interface Port-Channel1291
description server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
description SERVER_server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
no shutdown
switchport access vlan 110
switchport mode access
Expand Down Expand Up @@ -507,7 +507,7 @@ interface Ethernet27
channel-group 27 mode active
!
interface Ethernet29
description server22_port_channel_with_custom_id_Eth2
description SERVER_server22_port_channel_with_custom_id_Po1291
no shutdown
channel-group 1291 mode active
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ interface Port-Channel101
switchport
!
interface Ethernet1
description AP1 with port_channel
description AP1 with port_channel_Po1
no shutdown
channel-group 1 mode active
!
interface Ethernet2
description AP1 with port_channel
description AP1 with port_channel_Po2
no shutdown
channel-group 2 mode active
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ port_channel_interfaces:
access_vlan: '110'
mlag: 42
- name: Port-Channel1291
description: server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
description: SERVER_server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
shutdown: false
switchport:
enabled: true
Expand Down Expand Up @@ -1542,7 +1542,7 @@ ethernet_interfaces:
peer_interface: Eth1
peer_type: server
port_profile: TENANT_A
description: server22_port_channel_with_custom_id_Eth1
description: SERVER_server22_port_channel_with_custom_id_Po1291
shutdown: false
channel_group:
id: 1291
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ port_channel_interfaces:
access_vlan: '110'
mlag: 42
- name: Port-Channel1291
description: server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
description: SERVER_server22_port_channel_with_custom_id_server22_port_channel_with_custom_id
shutdown: false
switchport:
enabled: true
Expand Down Expand Up @@ -1501,7 +1501,7 @@ ethernet_interfaces:
peer_interface: Eth2
peer_type: server
port_profile: TENANT_A
description: server22_port_channel_with_custom_id_Eth2
description: SERVER_server22_port_channel_with_custom_id_Po1291
shutdown: false
channel_group:
id: 1291
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ethernet_interfaces:
peer: AP1 with port_channel
peer_type: network_port
port_profile: ap_with_port_channel
description: AP1 with port_channel
description: AP1 with port_channel_Po1
shutdown: false
channel_group:
id: 1
Expand All @@ -113,7 +113,7 @@ ethernet_interfaces:
peer: AP1 with port_channel
peer_type: network_port
port_profile: ap_with_port_channel
description: AP1 with port_channel
description: AP1 with port_channel_Po2
shutdown: false
channel_group:
id: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ servers:
switch_ports: [ Ethernet29, Ethernet29 ]
switches: [ DC1-SVC3A, DC1-SVC3B ]
profile: TENANT_A
# testing using port_channel_id for member interface description
description: "{endpoint_type!u}_{endpoint}{port_channel_id?<_Po}"
port_channel:
endpoint_port_channel: server22_port_channel_with_custom_id
mode: active
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ network_ports:
- network-ports-tests-2$
switch_ports:
- Ethernet1-2
# testing using port_channel_id for member interface description
description: "{endpoint}{port_channel_id?<_Po}"
profile: ap_with_port_channel
endpoint: AP1 with port_channel

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.

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

Loading

0 comments on commit b1cd751

Please sign in to comment.