Page MenuHomeVyOS Platform

Adding non existent bond interface raises exception
Closed, ResolvedPublicBUG

Description

set interfaces bonding bond0 address 192.0.2.1/31
set interfaces bonding bond0 description "VyOS bonding"
set interfaces bonding bond0 disable-link-detect
set interfaces bonding bond0 hash-policy layer3+4
set interfaces bonding bond0 ip arp-cache-timeout 86400
set interfaces bonding bond0 mac 00:91:00:00:00:01
set interfaces bonding bond0 mode active-backup
set interfaces bonding bond0 mtu 9000
set interfaces bonding bond0 member interface eth2
set interfaces bonding bond0 member interface eth3
[ interfaces bonding bond0 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-bonding.py", line 502, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-bonding.py", line 448, in apply
    b.add_port(intf)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 1516, in add_port
    Interface(interface).set_state('down')
  File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 88, in __init__
    raise Exception('interface "{}" not found'.format(self._ifname))
Exception: interface "eth3" not found

[[interfaces bonding bond0]] failed

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202002150217
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

c-po renamed this task from Adding non existent bond interface rraises exception to Adding non existent bond interface raises exception.Feb 15 2020, 6:42 PM
c-po changed the task status from Open to In progress.
c-po triaged this task as High priority.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 5:40 PM