-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VM]: add new topo wan-4link (4 link between each device based on wan…
…-pub) (#6682) Add wan-4link topo (each device is connected 4 physical links in one port channel) What is the motivation for this PR? Add a new topo based on wan-pub that support multi-links between devices. How did you do it? Add a new topo (wan-4link) and move wan related configuration which would not be covered in other parts under wan_dut_configuration.
- Loading branch information
Showing
9 changed files
with
321 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,3 @@ interface {{ name }} | |
! | ||
ssh server v2 | ||
end | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{% set host = configuration[hostname] %} | ||
{% set mgmt_ip = ansible_host %} | ||
{% if vm_type is defined and vm_type == "ceos" %} | ||
{% set mgmt_if_index = 0 %} | ||
{% else %} | ||
{% set mgmt_if_index = 1 %} | ||
{% endif %} | ||
no schedule tech-support | ||
! | ||
{% if vm_type is defined and vm_type == "ceos" %} | ||
agent LicenseManager shutdown | ||
agent PowerFuse shutdown | ||
agent PowerManager shutdown | ||
agent Thermostat shutdown | ||
agent LedPolicy shutdown | ||
agent StandbyCpld shutdown | ||
agent Bfd shutdown | ||
{% endif %} | ||
! | ||
hostname {{ hostname }} | ||
! | ||
vrf definition MGMT | ||
rd 1:1 | ||
! | ||
spanning-tree mode mstp | ||
! | ||
aaa root secret 0 123456 | ||
! | ||
username admin privilege 15 role network-admin secret 0 123456 | ||
! | ||
clock timezone UTC | ||
! | ||
lldp run | ||
lldp management-address Management{{ mgmt_if_index }} | ||
lldp management-address vrf MGMT | ||
! | ||
snmp-server community {{ snmp_rocommunity }} ro | ||
snmp-server vrf MGMT | ||
! | ||
ip routing | ||
ip routing vrf MGMT | ||
ipv6 unicast-routing | ||
! | ||
{% if vm_mgmt_gw is defined %} | ||
ip route vrf MGMT 0.0.0.0/0 {{ vm_mgmt_gw }} | ||
{% else %} | ||
ip route vrf MGMT 0.0.0.0/0 {{ mgmt_gw }} | ||
{% endif %} | ||
! | ||
interface Management {{ mgmt_if_index }} | ||
description TO LAB MGMT SWITCH | ||
{% if vm_type is defined and vm_type == "ceos" %} | ||
vrf MGMT | ||
{% else %} | ||
vrf forwarding MGMT | ||
{% endif %} | ||
ip address {{ mgmt_ip }}/{{ mgmt_prefixlen }} | ||
no shutdown | ||
! | ||
{% for name, iface in host['interfaces'].items() %} | ||
interface {{ name }} | ||
{% if name.startswith('Loopback') %} | ||
description LOOPBACK | ||
{% else %} | ||
mtu 9214 | ||
no switchport | ||
no shutdown | ||
{% endif %} | ||
{% if name.startswith('Port-Channel') %} | ||
port-channel min-links 1 | ||
{% endif %} | ||
{% if iface['lacp'] is defined %} | ||
channel-group {{ iface['lacp'] }} mode active | ||
lacp rate normal | ||
{% endif %} | ||
{% if iface['ipv4'] is defined %} | ||
ip address {{ iface['ipv4'] }} | ||
{% endif %} | ||
{% if iface['ipv6'] is defined %} | ||
ipv6 enable | ||
ipv6 address {{ iface['ipv6'] }} | ||
ipv6 nd ra suppress | ||
{% endif %} | ||
no shutdown | ||
! | ||
{% endfor %} | ||
! | ||
interface {{ bp_ifname }} | ||
description backplane | ||
no switchport | ||
no shutdown | ||
{% if host['bp_interface']['ipv4'] is defined %} | ||
ip address {{ host['bp_interface']['ipv4'] }} | ||
{% endif %} | ||
{% if host['bp_interface']['ipv6'] is defined %} | ||
ipv6 enable | ||
ipv6 address {{ host['bp_interface']['ipv6'] }} | ||
ipv6 nd ra suppress | ||
{% endif %} | ||
no shutdown | ||
! | ||
{% for name, iface in host['interfaces'].items() if name.startswith('Loopback') %} | ||
{% if iface['ipv4'] is defined %} | ||
network {{ iface['ipv4'] }} | ||
{% endif %} | ||
{% if iface['ipv6'] is defined %} | ||
network {{ iface['ipv6'] }} | ||
{% endif %} | ||
{% endfor %} | ||
! | ||
management api http-commands | ||
no protocol https | ||
protocol http | ||
no shutdown | ||
! | ||
end |
Oops, something went wrong.