Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add support for additional isis authenticat…
Browse files Browse the repository at this point in the history
…ion commands in `ethernet-interfaces` (#4326)
  • Loading branch information
laxmikantchintakindi authored Nov 15, 2024
1 parent 8a750b4 commit b53e79a
Show file tree
Hide file tree
Showing 41 changed files with 703 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet4 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet4 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet4 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ vlan internal order ascending range 1006 1199

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet2 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet3 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
| Ethernet4 | - | CORE | - | 50 | point-to-point | level-2 | True | md5 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2523,9 +2523,25 @@ interface Dps1

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Ethernet5 | - | ISIS_TEST | True | 99 | point-to-point | level-2 | False | md5 |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet5 | - | ISIS_TEST | True | 99 | point-to-point | level-2 | False | - |
| Ethernet8 | - | - | - | - | - | - | - | md5 |
| Ethernet8.101 | - | - | - | - | - | - | - | md5 |
| Ethernet9 | - | - | - | - | - | - | - | sha |
| Ethernet10 | - | - | - | - | - | - | - | sha |
| Ethernet11 | - | - | - | - | - | - | - | shared-secret |
| Ethernet12 | - | - | - | - | - | - | - | shared-secret |
| Ethernet13 | - | - | - | - | - | - | - | Level-1: md5<br>Level-2: text |
| Ethernet14 | - | - | - | - | - | - | - | Level-1: md5<br>Level-2: sha |
| Ethernet15 | - | - | - | - | - | - | - | Level-1: shared-secret<br>Level-2: shared-secret |
| Ethernet16 | - | - | - | - | - | - | - | Level-1: shared-secret<br>Level-2: shared-secret |
| Ethernet17 | - | - | - | - | - | - | - | Level-1: sha<br>Level-2: sha |
| Ethernet18 | - | - | - | - | - | - | - | Level-1: sha<br>Level-2: sha |
| Ethernet20 | - | - | - | - | - | - | - | Level-1: shared-secret<br>Level-2: md5 |
| Ethernet21 | - | - | - | - | - | - | - | Level-1: md5 |
| Ethernet22 | - | - | - | - | - | - | - | Level-2: sha |
| Ethernet23 | - | - | - | - | - | - | - | Level-2: shared-secret |
| Ethernet81/10 | 110 | *ISIS_TEST | True | *99 | *point-to-point | *level-2 | *True | *text |

*Inherited from Port-Channel Interface
Expand Down Expand Up @@ -2741,8 +2757,6 @@ interface Ethernet5
isis metric 99
no isis hello padding
isis network point-to-point
isis authentication mode md5
isis authentication key 7 <removed>
spanning-tree guard loop
!
interface Ethernet6
Expand Down Expand Up @@ -2789,13 +2803,17 @@ interface Ethernet8
no switchport
no lldp transmit
no lldp receive
isis authentication mode md5 rx-disabled
isis authentication key 0 <removed>
!
interface Ethernet8.101
description to WAN-ISP-01 Ethernet2.101 - VRF-C1
encapsulation dot1q vlan 101
ip address 172.31.128.1/31
ipv6 enable
ipv6 address 2002:ABDC::1/64
isis authentication mode md5
isis authentication key 0 <removed>
!
interface Ethernet9
description interface_with_mpls_enabled
Expand All @@ -2805,26 +2823,32 @@ interface Ethernet9
multicast ipv4 boundary ACL_MULTICAST out
multicast ipv6 static
mpls ip
isis authentication mode sha key-id 2 rx-disabled
isis authentication key 0 <removed>
!
interface Ethernet10
description interface_with_mpls_disabled
no switchport
ip address 172.31.128.10/31
no mpls ldp interface
no mpls ip
isis authentication mode sha key-id 2
isis authentication key 0 <removed>
!
interface Ethernet11
description interface_in_mode_access_accepting_tagged_LACP
switchport access vlan 200
switchport mode access
switchport
l2-protocol encapsulation dot1q vlan 200
isis authentication mode shared-secret profile profile1 algorithm sha-1 rx-disabled
!
interface Ethernet12
description interface_with_dot1q_tunnel
switchport access vlan 300
switchport mode dot1q-tunnel
switchport
isis authentication mode shared-secret profile profile1 algorithm sha-1
!
interface Ethernet13
description interface_in_mode_access_with_voice
Expand All @@ -2835,6 +2859,10 @@ interface Ethernet13
switchport phone trunk untagged
switchport mode trunk phone
switchport
isis authentication mode md5 rx-disabled level-1
isis authentication mode text rx-disabled level-2
isis authentication key 0 <removed> level-1
isis authentication key 0 <removed> level-2
no logging event storm-control discards
no logging event spanning-tree
!
Expand All @@ -2844,13 +2872,19 @@ interface Ethernet14
switchport trunk allowed vlan 110-111,210-211
switchport mode trunk
switchport
isis authentication mode md5 level-1
isis authentication mode sha key-id 10 level-2
isis authentication key 0 <removed> level-1
isis authentication key 0 <removed> level-2
!
interface Ethernet15
description PVLAN Promiscuous Access - only one secondary
switchport access vlan 110
switchport mode access
switchport
switchport pvlan mapping 111
isis authentication mode shared-secret profile profile1 algorithm sha-256 level-1
isis authentication mode shared-secret profile profile2 algorithm sha-1 level-2
!
interface Ethernet16
description PVLAN Promiscuous Trunk - vlan translation out
Expand All @@ -2859,20 +2893,26 @@ interface Ethernet16
switchport mode trunk
switchport
switchport vlan translation out 111-112 110
isis authentication mode shared-secret profile profile1 algorithm sha-256 rx-disabled level-1
isis authentication mode shared-secret profile profile2 algorithm sha-1 rx-disabled level-2
!
interface Ethernet17
description PVLAN Secondary Trunk
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport
switchport trunk private-vlan secondary
isis authentication mode sha key-id 5 rx-disabled level-1
isis authentication mode sha key-id 10 rx-disabled level-2
!
interface Ethernet18
description PBR Description
mtu 1500
no switchport
ip address 192.0.2.1/31
service-policy type pbr input MyLANServicePolicy
isis authentication mode sha key-id 5 level-1
isis authentication mode sha key-id 10 level-2
!
interface Ethernet19
description Switched port with no LLDP rx/tx
Expand All @@ -2882,29 +2922,43 @@ interface Ethernet19
no lldp transmit
no lldp receive
lldp tlv transmit ztp vlan 666
isis authentication key-id 2 algorithm sha-512 key 0 <removed>
isis authentication key-id 3 algorithm sha-512 rfc-5310 key 0 <removed>
isis authentication key-id 1 algorithm sha-1 key 0 <removed> level-1
isis authentication key-id 4 algorithm sha-1 rfc-5310 key 0 <removed> level-1
isis authentication key-id 1 algorithm sha-1 key 0 <removed> level-2
isis authentication key-id 5 algorithm sha-1 rfc-5310 key 0 <removed> level-2
!
interface Ethernet20
description Port patched through patch-panel to pseudowire
no switchport
no lldp transmit
no lldp receive
isis authentication mode shared-secret profile profile1 algorithm sha-256 level-1
isis authentication mode md5 level-2
isis authentication key 0 <removed> level-2
!
interface Ethernet21
description 200MBit/s shape
switchport
no qos trust
shape rate 200000 kbps
isis authentication mode md5 rx-disabled level-1
isis authentication key 0 <removed> level-1
!
interface Ethernet22
description 10% shape
switchport
shape rate 10 percent
isis authentication mode sha key-id 100 level-2
isis authentication key 0 <removed> level-2
!
interface Ethernet23
description Error-correction encoding
error-correction encoding fire-code
error-correction encoding reed-solomon
switchport
isis authentication mode shared-secret profile profile2 algorithm sha-1 level-2
!
interface Ethernet24
description Disable error-correction encoding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ interface Management1

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | EVPN_UNDERLAY | - | 50 | point-to-point | - | - | - |
| Ethernet2 | - | EVPN_UNDERLAY | - | 50 | point-to-point | - | - | - |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ interface Management1

##### ISIS

| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------- |
| Interface | Channel Group | ISIS Instance | ISIS BFD | ISIS Metric | Mode | ISIS Circuit Type | Hello Padding | ISIS Authentication Mode |
| --------- | ------------- | ------------- | -------- | ----------- | ---- | ----------------- | ------------- | ------------------------ |
| Ethernet1 | - | EVPN_UNDERLAY | - | 50 | point-to-point | - | - | - |
| Ethernet2 | - | EVPN_UNDERLAY | - | 50 | point-to-point | level-1-2 | - | - |
| Ethernet4 | 4 | *EVPN_UNDERLAY | - | *50 | *point-to-point | *level-2 | *- | *- |
Expand Down
Loading

0 comments on commit b53e79a

Please sign in to comment.