-
Notifications
You must be signed in to change notification settings - Fork 202
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 the eos-cli config for vlan-interfaces
to match with EOS
#4488
base: devel
Are you sure you want to change the base?
Refactor(eos_cli_config_gen): Rearrange the eos-cli config for vlan-interfaces
to match with EOS
#4488
Changes from all commits
9eef694
d67bbea
b74da94
bb020d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,15 @@ interface Vlan24 | |
ipv6 address 1b11:3a00:22b0:6::15/64 | ||
ipv6 nd managed-config-flag | ||
ipv6 nd prefix 1b11:3a00:22b0:6::/64 infinite infinite no-autoconfig | ||
ipv6 virtual-router address 1b11:3a00:22b0:6::1 | ||
ip address virtual 10.10.24.1/24 | ||
ipv6 virtual-router address 1b11:3a00:22b0:6::1 | ||
! | ||
interface Vlan25 | ||
description SVI Description | ||
no shutdown | ||
ipv6 address 1b11:3a00:22b0:16::16/64 | ||
ipv6 virtual-router address 1b11:3a00:22b0:16::15 | ||
ipv6 virtual-router address 1b11:3a00:22b0:16::14 | ||
ipv6 virtual-router address 1b11:3a00:22b0:16::15 | ||
! | ||
interface Vlan41 | ||
description SVI Description | ||
|
@@ -90,17 +90,17 @@ interface Vlan75 | |
multicast ipv6 boundary ff00::/16 out | ||
multicast ipv6 boundary ff01::/16 out | ||
multicast ipv4 static | ||
ipv6 virtual-router address 1b11:3a00:22b0:1000::1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Key-id order
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. About the isis authentication key-id order the logic is like it will first sort the isis both type level key-ids then lervel-1 and then level-2 so we will see the order difference here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We are already sorting base on address but EOS sorting base on vrf and none vrf destinations There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
this ip nat is comes from interface-ip-nat.j2 so we can check there only |
||
ip address virtual 10.10.75.1/24 | ||
ipv6 virtual-router address 1b11:3a00:22b0:1000::1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already user natural sort on boundary address and as per sort ff00 comes first then ff01 but EOS do just opposite |
||
! | ||
interface Vlan81 | ||
description IPv6 Virtual Address | ||
vrf Tenant_C | ||
ipv6 enable | ||
ip address virtual 10.10.81.1/24 | ||
ipv6 address virtual fc00:10:10:81::1/64 | ||
ipv6 address virtual fc00:10:11:81::1/64 | ||
ipv6 address virtual fc00:10:12:81::1/64 | ||
ip address virtual 10.10.81.1/24 | ||
! | ||
interface Vlan83 | ||
description SVI Description | ||
|
@@ -115,8 +115,8 @@ interface Vlan83 | |
interface Vlan84 | ||
description SVI Description | ||
arp gratuitous accept | ||
arp monitor mac-address | ||
ip address 10.10.84.1/24 | ||
arp monitor mac-address | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode sha key-id 2 rx-disabled | ||
isis authentication key 0 password | ||
|
@@ -125,20 +125,20 @@ interface Vlan84 | |
! | ||
interface Vlan85 | ||
description SVI Description | ||
arp cache dynamic capacity 50000 | ||
ip address 10.10.84.1/24 | ||
arp cache dynamic capacity 50000 | ||
bfd interval 500 min-rx 500 multiplier 5 | ||
bfd echo | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode sha key-id 2 | ||
isis authentication key 0 password | ||
bfd interval 500 min-rx 500 multiplier 5 | ||
bfd echo | ||
! | ||
interface Vlan86 | ||
description SVI Description | ||
ip address 10.10.83.1/24 | ||
ip attached-host route export 10 | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode shared-secret profile profile1 algorithm sha-1 rx-disabled | ||
ip attached-host route export 10 | ||
! | ||
interface Vlan87 | ||
description SVI Description | ||
|
@@ -177,51 +177,51 @@ interface Vlan89 | |
multicast ipv6 static | ||
pim ipv4 sparse-mode | ||
pim ipv4 local-interface Loopback0 | ||
ipv6 virtual-router address 1b11:3a00:22b0:5200::3 | ||
ip address virtual 10.10.144.3/20 | ||
ipv6 virtual-router address 1b11:3a00:22b0:5200::3 | ||
! | ||
interface Vlan90 | ||
description SVI Description | ||
ip address 10.10.83.1/24 | ||
ip attached-host route export | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode shared-secret profile profile2 algorithm sha-1 level-1 | ||
isis authentication mode shared-secret profile profile1 algorithm sha-256 level-2 | ||
ip attached-host route export | ||
! | ||
interface Vlan91 | ||
description PBR Description | ||
shutdown | ||
service-policy type pbr input MyServicePolicy | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode md5 level-1 | ||
isis authentication mode text level-2 | ||
isis authentication key 0 password level-1 | ||
isis authentication key 0 password level-2 | ||
service-policy type pbr input MyServicePolicy | ||
! | ||
interface Vlan92 | ||
description SVI Description | ||
ip proxy-arp | ||
ip directed-broadcast | ||
ip address 10.10.92.1/24 | ||
ip directed-broadcast | ||
isis enable EVPN_UNDERLAY | ||
isis authentication mode shared-secret profile profile2 algorithm sha-1 rx-disabled level-1 | ||
isis authentication mode shared-secret profile profile1 algorithm sha-256 rx-disabled level-2 | ||
! | ||
interface Vlan110 | ||
description PVLAN Primary with vlan mapping | ||
no shutdown | ||
pvlan mapping 111-112 | ||
vrf Tenant_A | ||
ip address 10.0.101.1/24 | ||
multicast ipv4 boundary ACL_MULTICAST out | ||
multicast ipv6 source route export 20 | ||
multicast ipv4 static | ||
pvlan mapping 111-112 | ||
! | ||
interface Vlan333 | ||
description Multiple VRIDs and tracking | ||
no shutdown | ||
arp aging timeout 180 | ||
ip address 192.0.2.2/25 | ||
arp aging timeout 180 | ||
ipv6 enable | ||
ipv6 address 2001:db8:333::2/64 | ||
ipv6 address fe80::2/64 link-local | ||
|
@@ -286,8 +286,8 @@ interface Vlan501 | |
interface Vlan667 | ||
description Multiple VRIDs | ||
no shutdown | ||
arp aging timeout 180 | ||
ip address 192.0.2.2/25 | ||
arp aging timeout 180 | ||
ipv6 enable | ||
ipv6 address 2001:db8:667::2/64 | ||
ipv6 address fe80::2/64 link-local | ||
|
@@ -318,8 +318,8 @@ interface Vlan1002 | |
! | ||
interface Vlan2001 | ||
description SVI Description | ||
vrf Tenant_B | ||
logging event link-status | ||
vrf Tenant_B | ||
ip address virtual 10.2.1.1/24 | ||
comment | ||
Comment created from eos_cli under vlan_interfaces.Vlan2001 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IP order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The EOS is not sorting as natural sort here. If you see 239.0.0.1 then it should come before to 239.0.0.2 but not happening actually