Page MenuHomeVyOS Platform

VPP add op-mode commands to show bonding interafaces
Closed, ResolvedPublicFEATURE REQUEST

Description

Summary
VPP add op-mode commands to show bonding interfaces/statistics/members/details

Currently, we have op-mode only for LACP/802.3ad

set interfaces vpp bonding vppbond2 member interface 'eth1'
set vpp settings interface eth1
set vpp settings poll-sleep-usec '2222'


vyos@r14# run show  vpp 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                      1            BondEthernet2      0   1   0   0   0   1   1   1    0   0   0   0   0   0   0   0 
  LAG ID: [(ffff,52-54-00-f4-d5-cd,0003,00ff,0001), (ffff,00-00-00-00-00-00,0003,00ff,0001)]
  RX-state: DEFAULTED, TX-state: TRANSMIT, MUX-state: DETACHED, PTX-state: PERIODIC_TX
[edit]
vyos@r14# 



vyos@r14# set interfaces vpp bonding vppbond2 mode active-backup 
[edit]
vyos@r14# commit

vyos@r14# run show vpp 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 
[edit]
vyos@r14#

Proposed CLI:

show interfaces vpp bonding 
show interfaces vpp bonding detail

Some VPP commands:

vyos@r14# sudo vppctl show bond
interface name   sw_if_index  mode          load balance  active members members
BondEthernet2    3            active-backup active-backup 1              1
[edit]
vyos@r14# 

vyos@r14# sudo vppctl show bond details
BondEthernet2
  mode: active-backup
  load balance: active-backup
  number of active members: 1
    eth1
      weight: 0, is_local_numa: 1, sw_if_index: 1
  number of members: 1
    eth1
  device instance: 0
  interface id: 2
  sw_if_index: 3
  hw_if_index: 3
[edit]
vyos@r14#

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)