Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Conversation

@sever-sever
Copy link
Contributor

@sever-sever sever-sever commented Jan 27, 2025

Change Summary

Add state to the init

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Other (please describe):

Related Task(s)

Related PR(s)

Proposed changes

How to test

Before the fix the bonding interface was in the down state

set vpp interfaces bonding bond0 member interface 'eth1'
set vpp settings interface eth1 driver 'dpdk'
set vpp settings unix poll-sleep-usec '12'

Check state:

vyos@r14# sudo vppctl show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count     
BondEthernet0                     3      up          9000/0/0/0     rx packets                    17
                                                                    rx bytes                     884
                                                                    drops                         17
eth1                              1      up          1500/0/0/0     rx packets                    19
                                                                    rx bytes                     988
                                                                    tx packets                    14
                                                                    tx bytes                    1586
                                                                    drops                          2
local0                            0     down          0/0/0/0       
tap1                              2      up          9000/0/0/0     rx packets                     8
                                                                    rx bytes                     836
                                                                    ip6                            8
[edit]
vyos@r14# 

Disable bond interface:

vyos@r14# set vpp interfaces bonding bond0 disable 
[edit]
vyos@r14# commit
[edit]
vyos@r14# 
[edit]
vyos@r14# sudo vppctl show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count     
BondEthernet0                     3     down         9000/0/0/0     rx packets                     2
                                                                    rx bytes                     104
                                                                    drops                          2
eth1                              1      up          1500/0/0/0     rx packets                    40
                                                                    rx bytes                    2080
                                                                    tx packets                    19
                                                                    tx bytes                    2206
                                                                    drops                          3
local0                            0     down          0/0/0/0       
tap1                              2      up          9000/0/0/0     rx packets                     8
                                                                    rx bytes                     836
                                                                    ip6                            8
[edit]
vyos@r14# 

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@sever-sever sever-sever requested review from dmbaturin and zdc January 27, 2025 12:32
@sever-sever sever-sever force-pushed the sever-sever-if-state branch 3 times, most recently from 8446f8e to 577b169 Compare January 27, 2025 12:44
@sever-sever sever-sever merged commit 485a784 into current Jan 27, 2025
2 checks passed
@sever-sever sever-sever deleted the sever-sever-if-state branch January 27, 2025 19:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants