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_cli_config_gen commands to match with EOS sequence - Part 5 #4549

Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,10 @@ ip route vrf MGMT 0.0.0.0/0 172.16.100.1
router ospf 100
router-id 172.16.1.1
passive-interface default
no passive-interface Vlan4093
no passive-interface Ethernet52/1
max-lsa 12000
no passive-interface Vlan4093
redistribute connected
max-lsa 12000
```

## Multicast
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,10 @@ ip route vrf MGMT 0.0.0.0/0 172.16.100.1
router ospf 100
router-id 172.16.1.2
passive-interface default
no passive-interface Vlan4093
no passive-interface Ethernet52/1
max-lsa 12000
no passive-interface Vlan4093
redistribute connected
max-lsa 12000
```

## Multicast
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ ntp server vrf MGMT time.google.com prefer
router ospf 100
router-id 172.16.1.1
passive-interface default
no passive-interface Vlan4093
no passive-interface Ethernet52/1
max-lsa 12000
no passive-interface Vlan4093
redistribute connected
max-lsa 12000
!
end
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ ntp server vrf MGMT time.google.com prefer
router ospf 100
router-id 172.16.1.2
passive-interface default
no passive-interface Vlan4093
no passive-interface Ethernet52/1
max-lsa 12000
no passive-interface Vlan4093
redistribute connected
max-lsa 12000
!
end
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,14 @@ interface Ethernet60
ip nat source static 3.0.0.6 22 4.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat source static 3.0.0.7 access-list ACL21 4.0.0.7
ip nat source ingress static 3.0.0.8 4.0.0.8
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.3 22 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat source dynamic access-list ACL11 pool POOL11
ip nat source dynamic access-list ACL12 pool POOL11 comment POOL11 shared with ACL11/12
ip nat source dynamic access-list ACL13 pool POOL13 priority 10
Expand All @@ -982,14 +990,6 @@ interface Ethernet60
ip nat source dynamic access-list ACL17 overload priority 10 comment Priority_10
ip nat source dynamic access-list ACL18 pool POOL18 address-only priority 10 comment Priority_10
ip nat source dynamic access-list ACL19 pool POOL19 full-cone priority 10 comment Priority_10
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.3 22 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat destination dynamic access-list ACL2 pool POOL1 comment POOL1 shared with ACL1/2
ip nat destination dynamic access-list ACL3 pool POOL3 priority 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ ip nat profile NAT-PROFILE-NO-VRF-2
ip nat source static 3.0.0.6 22 4.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat source static 3.0.0.7 access-list ACL21 4.0.0.7
ip nat source ingress static 3.0.0.8 4.0.0.8
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.2 23 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat source dynamic access-list ACL11 pool POOL11
ip nat source dynamic access-list ACL12 pool POOL11 comment POOL11 shared with ACL11/12
ip nat source dynamic access-list ACL13 pool POOL13 priority 10
Expand All @@ -180,14 +188,6 @@ ip nat profile NAT-PROFILE-NO-VRF-2
ip nat source dynamic access-list ACL17 overload priority 10 comment Priority_10
ip nat source dynamic access-list ACL18 pool POOL18 address-only priority 10 comment Priority_10
ip nat source dynamic access-list ACL19 pool POOL19 full-cone priority 10 comment Priority_10
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.2 23 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat destination dynamic access-list ACL2 pool POOL1 comment POOL1 shared with ACL1/2
ip nat destination dynamic access-list ACL3 pool POOL3 priority 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ interface Port-Channel130
description IP NAT Testing
switchport
ip nat source static 3.0.0.1 4.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination static 1.0.0.1 2.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination dynamic access-list ACL1 pool POOL1
!
interface Port-Channel131
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,35 +232,35 @@ interface Vlan24
!
router ospf 100
router-id 192.168.255.3
auto-cost reference-bandwidth 100
bfd default
bfd adjacency state any
distance ospf intra-area 50
distance ospf external 60
distance ospf inter-area 70
passive-interface default
no passive-interface Ethernet1
no passive-interface Ethernet2
no passive-interface Vlan4093
redistribute bgp
redistribute connected
redistribute static
distribute-list route-map RM-OSPF-DIST-IN in
network 198.51.100.0/24 area 0.0.0.1
network 203.0.113.0/24 area 0.0.0.2
bfd default
bfd adjacency state any
distribute-list route-map RM-OSPF-DIST-IN in
max-lsa 12000
default-information originate
redistribute static
redistribute connected
redistribute bgp
auto-cost reference-bandwidth 100
maximum-paths 10
default-information originate
mpls ldp sync default
!
router ospf 101 vrf CUSTOMER01
log-adjacency-changes detail
router-id 1.0.1.1
passive-interface default
no passive-interface Ethernet2.101
log-adjacency-changes detail
timers spf delay initial 100 200 300
timers lsa rx min interval 100
timers lsa tx delay initial 100 200 300
timers spf delay initial 100 200 300
summary-address 10.0.0.0/8
summary-address 20.0.0.0/8 tag 10
summary-address 30.0.0.0/8 attribute-map RM-OSPF_SUMMARY
Expand All @@ -269,28 +269,28 @@ router ospf 101 vrf CUSTOMER01

!
router ospf 200 vrf ospf_zone
log-adjacency-changes detail
router-id 192.168.254.1
redistribute bgp include leaked route-map rm-ospf-bgp
redistribute connected include leaked route-map rm-ospf-connected
redistribute static include leaked route-map rm-ospf-static
area 0.0.0.2 filter 1.1.1.0/24
area 0.0.0.2 filter 2.2.2.0/24
area 3 filter prefix-list PL-OSPF-FILTERING
max-lsa 5
log-adjacency-changes detail
timers lsa rx min interval 100
default-information originate always metric 100 metric-type 1
redistribute static include leaked route-map rm-ospf-static
redistribute connected include leaked route-map rm-ospf-connected
redistribute bgp include leaked route-map rm-ospf-bgp
!
router ospf 300
redistribute static route-map rm-ospf-static
redistribute connected route-map rm-ospf-connected
redistribute bgp route-map rm-ospf-bgp
redistribute connected route-map rm-ospf-connected
redistribute static route-map rm-ospf-static
max-metric router-lsa
!
router ospf 400
redistribute static include leaked
redistribute connected include leaked
redistribute bgp include leaked
redistribute connected include leaked
redistribute static include leaked
max-metric router-lsa external-lsa include-stub on-startup wait-for-bgp summary-lsa
!
router ospf 500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ interface Vlan44
interface Vlan50
description IP NAT Testing
ip nat source static 3.0.0.1 4.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination static 1.0.0.1 2.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination dynamic access-list ACL1 pool POOL1
isis authentication mode text rx-disabled level-2
isis authentication key 0 password level-2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,14 @@ interface Ethernet60
ip nat source static 3.0.0.6 22 4.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat source static 3.0.0.7 access-list ACL21 4.0.0.7
ip nat source ingress static 3.0.0.8 4.0.0.8
ip nat destination static 1.0.0.1 2.0.0.1
Vibhu-gslab marked this conversation as resolved.
Show resolved Hide resolved
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.3 22 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat source dynamic access-list ACL11 pool POOL11
ip nat source dynamic access-list ACL12 pool POOL11 comment POOL11 shared with ACL11/12
ip nat source dynamic access-list ACL13 pool POOL13 priority 10
Expand All @@ -598,14 +606,6 @@ interface Ethernet60
ip nat source dynamic access-list ACL17 overload priority 10 comment Priority_10
ip nat source dynamic access-list ACL18 pool POOL18 address-only priority 10 comment Priority_10
ip nat source dynamic access-list ACL19 pool POOL19 full-cone priority 10 comment Priority_10
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.3 22 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat destination dynamic access-list ACL2 pool POOL1 comment POOL1 shared with ACL1/2
ip nat destination dynamic access-list ACL3 pool POOL3 priority 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ ip nat profile NAT-PROFILE-NO-VRF-2
ip nat source static 3.0.0.6 22 4.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat source static 3.0.0.7 access-list ACL21 4.0.0.7
ip nat source ingress static 3.0.0.8 4.0.0.8
ip nat destination static 1.0.0.1 2.0.0.1
ClausHolbechArista marked this conversation as resolved.
Show resolved Hide resolved
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.2 23 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat source dynamic access-list ACL11 pool POOL11
ip nat source dynamic access-list ACL12 pool POOL11 comment POOL11 shared with ACL11/12
ip nat source dynamic access-list ACL13 pool POOL13 priority 10
Expand All @@ -31,14 +39,6 @@ ip nat profile NAT-PROFILE-NO-VRF-2
ip nat source dynamic access-list ACL17 overload priority 10 comment Priority_10
ip nat source dynamic access-list ACL18 pool POOL18 address-only priority 10 comment Priority_10
ip nat source dynamic access-list ACL19 pool POOL19 full-cone priority 10 comment Priority_10
ip nat destination static 1.0.0.1 2.0.0.1
ip nat destination static 1.0.0.2 22 2.0.0.2
ip nat destination static 1.0.0.2 23 2.0.0.3 23
ip nat destination static 1.0.0.4 22 2.0.0.4 23 protocol udp
ip nat destination static 1.0.0.5 22 2.0.0.5 23 protocol tcp group 1
ip nat destination static 1.0.0.6 22 2.0.0.6 23 protocol tcp group 2 comment Comment Test
ip nat destination static 1.0.0.7 access-list ACL21 2.0.0.7
ip nat destination egress static 239.0.0.1 239.0.0.2
ip nat destination dynamic access-list ACL1 pool POOL1
ip nat destination dynamic access-list ACL2 pool POOL1 comment POOL1 shared with ACL1/2
ip nat destination dynamic access-list ACL3 pool POOL3 priority 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ interface Port-Channel130
description IP NAT Testing
switchport
ip nat source static 3.0.0.1 4.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination static 1.0.0.1 2.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination dynamic access-list ACL1 pool POOL1
!
interface Port-Channel131
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,35 @@ interface Vlan24
!
router ospf 100
router-id 192.168.255.3
auto-cost reference-bandwidth 100
bfd default
bfd adjacency state any
distance ospf intra-area 50
distance ospf external 60
distance ospf inter-area 70
passive-interface default
no passive-interface Ethernet1
no passive-interface Ethernet2
no passive-interface Vlan4093
redistribute bgp
redistribute connected
redistribute static
distribute-list route-map RM-OSPF-DIST-IN in
network 198.51.100.0/24 area 0.0.0.1
network 203.0.113.0/24 area 0.0.0.2
bfd default
bfd adjacency state any
distribute-list route-map RM-OSPF-DIST-IN in
max-lsa 12000
default-information originate
redistribute static
redistribute connected
redistribute bgp
auto-cost reference-bandwidth 100
maximum-paths 10
default-information originate
mpls ldp sync default
!
router ospf 101 vrf CUSTOMER01
log-adjacency-changes detail
router-id 1.0.1.1
passive-interface default
no passive-interface Ethernet2.101
log-adjacency-changes detail
timers spf delay initial 100 200 300
timers lsa rx min interval 100
timers lsa tx delay initial 100 200 300
timers spf delay initial 100 200 300
summary-address 10.0.0.0/8
summary-address 20.0.0.0/8 tag 10
summary-address 30.0.0.0/8 attribute-map RM-OSPF_SUMMARY
Expand All @@ -69,28 +69,28 @@ router ospf 101 vrf CUSTOMER01

!
router ospf 200 vrf ospf_zone
log-adjacency-changes detail
router-id 192.168.254.1
redistribute bgp include leaked route-map rm-ospf-bgp
redistribute connected include leaked route-map rm-ospf-connected
redistribute static include leaked route-map rm-ospf-static
area 0.0.0.2 filter 1.1.1.0/24
area 0.0.0.2 filter 2.2.2.0/24
area 3 filter prefix-list PL-OSPF-FILTERING
max-lsa 5
log-adjacency-changes detail
timers lsa rx min interval 100
default-information originate always metric 100 metric-type 1
redistribute static include leaked route-map rm-ospf-static
redistribute connected include leaked route-map rm-ospf-connected
redistribute bgp include leaked route-map rm-ospf-bgp
!
router ospf 300
redistribute static route-map rm-ospf-static
redistribute connected route-map rm-ospf-connected
redistribute bgp route-map rm-ospf-bgp
redistribute connected route-map rm-ospf-connected
redistribute static route-map rm-ospf-static
max-metric router-lsa
!
router ospf 400
redistribute static include leaked
redistribute connected include leaked
redistribute bgp include leaked
redistribute connected include leaked
redistribute static include leaked
max-metric router-lsa external-lsa include-stub on-startup wait-for-bgp summary-lsa
!
router ospf 500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ interface Vlan44
interface Vlan50
description IP NAT Testing
ip nat source static 3.0.0.1 4.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination static 1.0.0.1 2.0.0.1
ip nat source dynamic access-list ACL2 pool POOL2
ip nat destination dynamic access-list ACL1 pool POOL1
isis authentication mode text rx-disabled level-2
isis authentication key 0 password level-2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ ip route vrf MGMT 0.0.0.0/0 172.31.0.1
router ospf 100
router-id 192.168.255.1
passive-interface default
no passive-interface Vlan4094
no passive-interface Ethernet5
max-lsa 12000
no passive-interface Vlan4094
redistribute connected
max-lsa 12000
```

## Multicast
Expand Down
Loading
Loading