Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor(eos_cli_config_gen): Rearrange eos-intended-config based on eos cli #4411

Merged
merged 12 commits into from
Sep 13, 2024
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,21 +21,10 @@ hostname LEAF1A
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -42,6 +43,8 @@ vlan 4094
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel51
description SPINES_Po1
no shutdown
Expand Down Expand Up @@ -1063,11 +1066,8 @@ mlag configuration
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,21 +21,10 @@ hostname LEAF1B
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -42,6 +43,8 @@ vlan 4094
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel51
description SPINES_Po1
no shutdown
Expand Down Expand Up @@ -1063,11 +1066,8 @@ mlag configuration
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,20 +21,9 @@ hostname LEAF2A
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -37,6 +38,8 @@ vlan 230
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel11
description SPINES_Po491
no shutdown
Expand Down Expand Up @@ -6070,11 +6073,8 @@ no ip routing vrf MGMT
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,21 +21,10 @@ hostname LEAF3A
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -42,6 +43,8 @@ vlan 4094
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel971
description SPINES_Po501
no shutdown
Expand Down Expand Up @@ -2067,11 +2070,8 @@ mlag configuration
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,21 +21,10 @@ hostname LEAF3B
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -42,6 +43,8 @@ vlan 4094
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel971
description SPINES_Po501
no shutdown
Expand Down Expand Up @@ -2067,11 +2070,8 @@ mlag configuration
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
Expand All @@ -9,20 +21,9 @@ hostname LEAF3C
ip name-server vrf MGMT 8.8.4.4
ip name-server vrf MGMT 8.8.8.8
!
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
spanning-tree mode mstp
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin secret sha512 $6$eucN5ngreuExDgwS$xnD7T8jO..GBDX0DUlp.hn.W7yW94xTjSanqgaQGBzPIhDAsyAl9N4oScHvOMvf07uVBFI4mKMxwdVEUVKgY/.
!
vlan 10
name INBAND_MGMT
!
Expand All @@ -37,6 +38,8 @@ vlan 330
!
vrf instance MGMT
!
aaa authorization exec default local
!
interface Port-Channel971
description IDF3_AGG_Po973
no shutdown
Expand Down Expand Up @@ -1990,11 +1993,8 @@ no ip routing vrf MGMT
ip route vrf MGMT 0.0.0.0/0 172.16.100.1
ip route 0.0.0.0/0 10.10.10.1
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
ntp local-interface vrf MGMT Management0
ntp server vrf MGMT pool.ntp.org
ntp server vrf MGMT time.google.com prefer
!
end
Loading
Loading