Page MenuHomeVyOS Platform

Deleting a bond will place member interfaces into A/D state
Closed, ResolvedPublicFEATURE REQUEST

Description

vyos@R1# run show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth4             -                                 u/u  
eth5             -                                 u/u  
lo               127.0.0.1/8                       u/u  
                 ::1/128
[edit]
vyos@R1# set interfaces bonding bond1 address '100.64.0.1/24'
[edit]
vyos@R1# set interfaces bonding bond1 member interface 'eth4'
[edit]
vyos@R1# set interfaces bonding bond1 member interface 'eth5'
[edit]
vyos@R1# commit
[edit]
vyos@R1# run show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
bond1            100.64.0.1/24                     u/u  bond1 
eth4             -                                 u/u  
eth5             -                                 u/u  
lo               127.0.0.1/8                       u/u  
                 ::1/128
[edit]
vyos@R1# delete interfaces bonding 
[edit]
vyos@R1# commit
[edit]
vyos@R1# run show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth4             -                                 A/D  
eth5             -                                 A/D  
lo               127.0.0.1/8                       u/u  
                 ::1/128

Details

Difficulty level
Easy (less than an hour)
Version
1.2-rolling-20190916xxxx
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Related Objects

StatusSubtypeAssignedTask
In progressFEATURE REQUESTNone
ResolvedFEATURE REQUESTNone
ResolvedFEATURE REQUESTc-po
ResolvedFEATURE REQUESTc-po

Event Timeline

c-po triaged this task as Normal priority.
c-po changed Version from - to 1.2-rolling-20190916xxxx.

Okay, the old vyatta-bonding.pl executed the following code when a bond member has been removed:

sub if_up {
    my $intf = shift;
    system "sudo ip link set dev $intf up"
      and die "Could not set $intf up ($!)\n";

    my $smp_affinity = get_irq_affinity($intf);
    if ($smp_affinity) {
	system "/opt/vyatta/sbin/irq-affinity.pl $intf $smp_affinity"
	    and warn "Could not set $intf smp-affinity $smp_affinity\n";
    }
}

This code is definately not yet migrated!

Unknown Object (User) added a subscriber: Unknown Object (User).Sep 18 2019, 5:47 AM
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:47 PM