This attribute of the 'interface' schema allows the user to prompt what type of PHY they are expecting this interface to be. It will serve an immediate and a future purpose. Immediate: presence of the 'dpdk' device-type in a list of interfaces will help an upcoming vppapy.mockconfig() to generate a cache without having to talk to the API. This is useful to generate a pre-compute a complete vpp.exec based off of an empty VPP dataplane Future: addition of different PHY types, notably RDMA and VirtualEthernet types TESTED: - Added a unit test to ensure that only is_phy() eligable interfaces receive the device-type attribute. - All unit and YAML tests pass.
97 lines
1.9 KiB
YAML
97 lines
1.9 KiB
YAML
bondethernets:
|
|
BondEthernet0:
|
|
interfaces: [ GigabitEthernet3/0/0, GigabitEthernet3/0/1 ]
|
|
BondEthernet1:
|
|
mode: xor
|
|
|
|
interfaces:
|
|
GigabitEthernet3/0/0:
|
|
device-type: "dpdk"
|
|
mtu: 9000
|
|
description: "LAG #1"
|
|
GigabitEthernet3/0/1:
|
|
device-type: "dpdk"
|
|
mtu: 9000
|
|
description: "LAG #2"
|
|
|
|
HundredGigabitEthernet13/0/0:
|
|
device-type: "dpdk"
|
|
lcp: "ice0"
|
|
mtu: 9000
|
|
addresses: [ 192.0.2.17/30, 2001:db8:3::1/64 ]
|
|
sub-interfaces:
|
|
1234:
|
|
mtu: 1200
|
|
lcp: "ice0.1234"
|
|
encapsulation:
|
|
dot1q: 1234
|
|
exact-match: True
|
|
1235:
|
|
mtu: 1100
|
|
lcp: "ice0.1234.1000"
|
|
encapsulation:
|
|
dot1q: 1234
|
|
inner-dot1q: 1000
|
|
exact-match: True
|
|
|
|
HundredGigabitEthernet13/0/1:
|
|
device-type: "dpdk"
|
|
mtu: 2000
|
|
description: "Bridged"
|
|
|
|
BondEthernet0:
|
|
mtu: 9000
|
|
lcp: "be0"
|
|
sub-interfaces:
|
|
100:
|
|
mtu: 2500
|
|
l2xc: BondEthernet0.200
|
|
encapsulation:
|
|
dot1q: 100
|
|
exact-match: False
|
|
200:
|
|
mtu: 2500
|
|
l2xc: BondEthernet0.100
|
|
encapsulation:
|
|
dot1q: 200
|
|
exact-match: False
|
|
500:
|
|
mtu: 2000
|
|
encapsulation:
|
|
dot1ad: 500
|
|
exact-match: False
|
|
501:
|
|
mtu: 2000
|
|
encapsulation:
|
|
dot1ad: 501
|
|
exact-match: False
|
|
|
|
BondEthernet1:
|
|
mtu: 1500
|
|
|
|
vxlan_tunnel1:
|
|
mtu: 2000
|
|
|
|
loopbacks:
|
|
loop0:
|
|
lcp: "lo0"
|
|
addresses: [ 10.0.0.1/32, 2001:db8::1/128 ]
|
|
loop1:
|
|
mtu: 2000
|
|
lcp: "bvi1"
|
|
addresses: [ 10.0.1.1/24, 2001:db8:1::1/64 ]
|
|
|
|
bridgedomains:
|
|
bd1:
|
|
mtu: 2000
|
|
bvi: loop1
|
|
interfaces: [ BondEthernet0.500, BondEthernet0.501, HundredGigabitEthernet13/0/1, vxlan_tunnel1 ]
|
|
bd11:
|
|
mtu: 1500
|
|
|
|
vxlan_tunnels:
|
|
vxlan_tunnel1:
|
|
local: 192.0.2.1
|
|
remote: 192.0.2.2
|
|
vni: 101
|