Page MenuHomeVyOS Platform

Unhandled exception when setting up bonding interface on AWS
Open, NormalPublicBUG

Description

vyos@VyOS-for-Smoke-Tests# set interfaces bonding bond0 member interface eth1
[edit]
vyos@VyOS-for-Smoke-Tests# comp
[interfaces]
+ bonding bond0 {
+     member {
+         interface "eth1"
+     }
+ }

[edit]
vyos@VyOS-for-Smoke-Tests# commit
[ interfaces bonding bond0 ]
OSError: [Errno 95] Operation not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 156, in run_script
    script.apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_bonding.py", line 280, in apply
    b.update(bond)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bond.py", line 507, in update
    self.add_port(interface)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bond.py", line 312, in add_port
    ret = self.set_interface('bond_add_port', f'+{interface}')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 195, in set_interface
    return self._set_sysfs(self.config, name, value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 178, in _set_sysfs
    commited = self._write_sysfs(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 144, in _write_sysfs
    write_file(filename, str(value))
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 78, in write_file
    raise e
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 67, in write_file
    with open(fname, 'w' if not append else 'a') as f:
OSError: [Errno 95] Operation not supported

[[interfaces bonding bond0]] failed
Commit failed
[edit]

AWS instance: c5.4xlarge

vyos@VyOS-for-Smoke-Tests:~$ ethtool --driver eth1
driver: ena
version: 6.6.117-vyos
firmware-version: 
expansion-rom-version: 
bus-info: 0000:00:06.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

Details

Version
2025.12.06-0019-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)