Isolate LCP into its own tests
This commit is contained in:
62
unittest/test_interface.yaml
Normal file
62
unittest/test_interface.yaml
Normal file
@ -0,0 +1,62 @@
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
sub-interfaces:
|
||||
100:
|
||||
description: "This sub-int is invalid because it has both dot1q and dot1ad"
|
||||
encapsulation:
|
||||
dot1q: 1000
|
||||
dot1ad: 1000
|
||||
101:
|
||||
description: "This sub-int is invalid because it has no outer dot1q and dot1ad"
|
||||
encapsulation:
|
||||
inner-dot1q: 1000
|
||||
|
||||
102:
|
||||
description: "This sub-int is has the same encap as 103"
|
||||
103:
|
||||
description: "This sub-int is has the same encap as 102"
|
||||
encapsulation:
|
||||
dot1q: 102
|
||||
|
||||
GigabitEthernet1/0/1:
|
||||
mtu: 9216
|
||||
lcp: "e1"
|
||||
addresses: [ "192.0.2.1/30", "2001:db8:1::1/64" ]
|
||||
sub-interfaces:
|
||||
100:
|
||||
lcp: "foo"
|
||||
addresses: [ "10.0.0.1/24", "10.0.0.2/24", "2001:db8:2::1/64" ]
|
||||
200:
|
||||
mtu: 9000
|
||||
encapsulation:
|
||||
dot1q: 1000
|
||||
addresses: [ "10.0.1.1/30" ]
|
||||
201:
|
||||
encapsulation:
|
||||
dot1ad: 1000
|
||||
addresses: [ "10.0.2.1/30" ]
|
||||
202:
|
||||
encapsulation:
|
||||
dot1q: 1000
|
||||
inner-dot1q: 1234
|
||||
addresses: [ "10.0.3.1/30" ]
|
||||
203:
|
||||
encapsulation:
|
||||
dot1ad: 1000
|
||||
inner-dot1q: 1000
|
||||
addresses: [ "10.0.4.1/30" ]
|
||||
204:
|
||||
encapsulation:
|
||||
dot1ad: 1000
|
||||
inner-dot1q: 1000
|
||||
exact-match: True
|
||||
addresses: [ "10.0.5.1/30" ]
|
||||
|
||||
GigabitEthernet2/0/0:
|
||||
description: "This interface has no sub-ints"
|
||||
lcp: "e2"
|
||||
|
||||
GigabitEthernet3/0/0:
|
||||
l2xc: GigabitEthernet3/0/1
|
||||
GigabitEthernet3/0/1:
|
||||
l2xc: GigabitEthernet3/0/0
|
Reference in New Issue
Block a user