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
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
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)