Add TAP support
- based on previously submitted schema and validation, can add a TAP with host netns, bridge and MTU. - detect diffs in __tap_has_diff(), used to prune TAPs that must change - add prune_taps() and create_taps() in the reconciler - add Dumper() logic to emit YAML config for TAPs - Move tap_is_lcp() into the VPPApi() class, so it can be reused Add lots of test cases in intest/*.yaml and example.yaml - full regression and integration and unit/YAML tests pass on this change.
This commit is contained in:
34
intest/hippo14.yaml
Normal file
34
intest/hippo14.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
interfaces:
|
||||
GigabitEthernet3/0/0:
|
||||
mtu: 9000
|
||||
state: up
|
||||
sub-interfaces:
|
||||
100:
|
||||
mtu: 9000
|
||||
l2xc: tap100
|
||||
GigabitEthernet3/0/1:
|
||||
mtu: 1500
|
||||
mac: 00:25:90:0c:05:01
|
||||
state: down
|
||||
description: Not Used
|
||||
HundredGigabitEthernet12/0/0:
|
||||
mtu: 1500
|
||||
mac: b4:96:91:b3:b1:10
|
||||
state: down
|
||||
description: Not Used
|
||||
HundredGigabitEthernet12/0/1:
|
||||
mtu: 1500
|
||||
mac: b4:96:91:b3:b1:11
|
||||
state: down
|
||||
description: Not Used
|
||||
|
||||
tap100:
|
||||
mtu: 9000
|
||||
l2xc: GigabitEthernet3/0/0.100
|
||||
|
||||
taps:
|
||||
tap100:
|
||||
host:
|
||||
name: vpp-tap100
|
||||
mac: 02:01:be:ef:ca:fe
|
||||
mtu: 9000
|
Reference in New Issue
Block a user