Summary
Add op-mode commands to show the real status of the VPP bonding
show vpp lacp show vpp lacp details
Use case
Show LACP state
Additional information
Example of the config and output
set vpp interfaces bonding bond1 kernel-interface 'vpptun1' set vpp interfaces bonding bond1 member interface 'eth1' set vpp kernel-interfaces vpptun1 vif 12 address '100.64.12.1/24' set vpp settings interface eth0 driver 'dpdk' set vpp settings interface eth1 dpdk-options promisc set vpp settings interface eth1 driver 'dpdk' set vpp settings unix poll-sleep-usec '2222'
VPP output:
vyos@r1:~$ sudo vppctl show lacp
actor state partner state
interface name sw_if_index bond interface exp/def/dis/col/syn/agg/tim/act exp/def/dis/col/syn/agg/tim/act
eth1 2 BondEthernet1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 0 1
LAG ID: [(ffff,0c-f0-ff-a1-00-01,0005,00ff,0001), (ffff,da-f4-f6-a6-96-4e,000f,00ff,0001)]
RX-state: CURRENT, TX-state: TRANSMIT, MUX-state: COLLECTING_DISTRIBUTING, PTX-state: PERIODIC_TX
vyos@r1:~$
vyos@r1:~$
vyos@r1:~$ sudo vppctl show lacp details
Number of interfaces: 1
eth1
Good LACP PDUs received: 477
Bad LACP PDUs received: 0
LACP PDUs sent: 24
last LACP PDU received: .24 seconds ago
last LACP PDU sent: 9.19 seconds ago
Good Marker PDUs received: 0
Bad Marker PDUs received: 0
debug: 0
loopback port: 0
port_enabled: 1
port moved: 0
ready_n: 1
ready: 1
Actor
system: 0c:f0:ff:a1:00:01
system priority: 65535
key: 5
port priority: 255
port number: 1
state: 0x3f
LACP_STATE_LACP_ACTIVITY (0)
LACP_STATE_LACP_TIMEOUT (1)
LACP_STATE_AGGREGATION (2)
LACP_STATE_SYNCHRONIZATION (3)
LACP_STATE_COLLECTIING (4)
LACP_STATE_DISTRIBUTING (5)
Partner
system: da:f4:f6:a6:96:4e
system priority: 65535
key: 15
port priority: 255
port number: 1
state: 0x3d
LACP_STATE_LACP_ACTIVITY (0)
LACP_STATE_AGGREGATION (2)
LACP_STATE_SYNCHRONIZATION (3)
LACP_STATE_COLLECTIING (4)
LACP_STATE_DISTRIBUTING (5)
wait while timer: not running
current while timer: 2.76 seconds
periodic timer: 20.81 seconds
RX-state: CURRENT
TX-state: TRANSMIT
MUX-state: COLLECTING_DISTRIBUTING
PTX-state: PERIODIC_TX
vyos@r1:~$