mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 08:56:13 +00:00
all-protocol-startup/isis: Fix check for "show isis interface" to allow different circuit ids than 1
This commit is contained in:
parent
fcfbc7696b
commit
6ae351e837
@ -1,5 +1,5 @@
|
||||
Area test:
|
||||
Interface: r1-eth5, State: Up, Active, Circuit Id: 0x1
|
||||
Interface: r1-eth5, State: Up, Active, Circuit Id: 0xXX
|
||||
Type: lan, Level: L1, SNPA: XXXX.XXXX.XXXX
|
||||
Level-1 Information:
|
||||
Metric: 10, Active neighbors: 0
|
||||
@ -13,7 +13,7 @@ Area test:
|
||||
IPv6 Prefixes:
|
||||
fc00:0:0:5::1/64
|
||||
|
||||
Interface: r1-eth6, State: Up, Active, Circuit Id: 0x1
|
||||
Interface: r1-eth6, State: Up, Active, Circuit Id: 0xXX
|
||||
Type: lan, Level: L2, SNPA: XXXX.XXXX.XXXX
|
||||
Level-2 Information:
|
||||
Metric: 10, Active neighbors: 0
|
||||
|
@ -496,6 +496,8 @@ def test_isis_interfaces():
|
||||
actual = re.sub(r"fe80::[0-9a-f:]+", "fe80::XXXX:XXXX:XXXX:XXXX", actual)
|
||||
# Mask out SNPA mac address portion. They are random...
|
||||
actual = re.sub(r"SNPA: [0-9a-f\.]+", "SNPA: XXXX.XXXX.XXXX", actual)
|
||||
# Mask out Circuit ID number
|
||||
actual = re.sub(r"Circuit Id: 0x[0-9]+", "Circuit Id: 0xXX", actual)
|
||||
# Fix newlines (make them all the same)
|
||||
actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user