The handling of BVI is awkward, with the autoderived interface name "bviXX" based on the bridgedomain bd_id. Lots of special casing happens on account of this decision, and to make matters worse there is poor interaction (leading to VPP crashes) when BVIs and Loopbacks are used at the same time: https://lists.fd.io/g/vpp-dev/message/21116 In this commit, I reintroduce the ability to set bridgedomain virtual interfaces by means of the 'bvi' keyword. The 'bvi' must: - be a Loopback interface - must be used at most once (bvi_unique()) When pruning, I now need to prune bridgedomains before pruning loopbacks, because any given loopback might be a BVI for a bridge. So, I'll remove the loop/BVI from the bridge (by setting it to L3) and only then removing the loopback from VPP. In the reconciler, remove BVIs that have changed in prune_bridgedomains() and set it in sync_bridgedomains().
51 lines
2.0 KiB
YAML
51 lines
2.0 KiB
YAML
interfaces: map(include('interface'),key=str(),required=False)
|
|
bondethernets: map(include('bondethernet'),key=str(matches='BondEthernet[0-9]+'),required=False)
|
|
loopbacks: map(include('loopback'),key=str(matches='loop[0-9]+'),required=False)
|
|
bridgedomains: map(include('bridgedomain'),key=str(matches='bd[0-9]+'),required=False)
|
|
vxlan_tunnels: map(include('vxlan'),key=str(matches='vxlan_tunnel[0-9]+'),required=False)
|
|
---
|
|
vxlan:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
local: ip()
|
|
remote: ip()
|
|
vni: int(min=1,max=16777215)
|
|
---
|
|
bridgedomain:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
mtu: int(min=128,max=9216,required=False)
|
|
bvi: str(matches='loop[0-9]+',required=False)
|
|
interfaces: list(str(),required=False)
|
|
---
|
|
loopback:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
lcp: str(max=15,matches='[a-z]+[a-z0-9-]*',required=False)
|
|
mtu: int(min=128,max=9216,required=False)
|
|
addresses: list(ip_interface(),min=1,max=6,required=False)
|
|
---
|
|
bondethernet:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
interfaces: list(str(matches='.*GigabitEthernet[0-9]+/[0-9]+/[0-9]+'))
|
|
---
|
|
interface:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
mac: mac(required=False)
|
|
lcp: str(max=15,matches='[a-z]+[a-z0-9-]*',required=False)
|
|
mtu: int(min=128,max=9216,required=False)
|
|
addresses: list(ip_interface(),min=1,max=6,required=False)
|
|
sub-interfaces: map(include('sub-interface'),key=int(min=1,max=4294967295),required=False)
|
|
l2xc: str(required=False)
|
|
---
|
|
sub-interface:
|
|
description: str(exclude='\'"',len=64,required=False)
|
|
lcp: str(max=15,matches='[a-z]+[a-z0-9-]*',required=False)
|
|
mtu: int(min=128,max=9216,required=False)
|
|
addresses: list(ip_interface(),required=False)
|
|
encapsulation: include('encapsulation',required=False)
|
|
l2xc: str(required=False)
|
|
---
|
|
encapsulation:
|
|
dot1q: int(min=1,max=4095,required=False)
|
|
dot1ad: int(min=1,max=4095,required=False)
|
|
inner-dot1q: int(min=1,max=4095,required=False)
|
|
exact-match: bool(required=False)
|