If you attempt to configure a virtual-ethernet interface that is either itself owned by a podman network, or is trying to define a peer that is owned by a podman network, an exception is thrown.
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_virtual-ethernet.py", line 102, in apply
p.update(veth)
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1770, in update
self.set_alias(config.get('description', ''))
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1062, in set_alias
tmp = self.get_interface('alias')
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 190, in get_interface
return self._get_command(self.config, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 73, in _get_command
return self._command_get[name].get('format', lambda _: _)(self._cmd(cmd))
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 66, in _cmd
return cmd(command, self.debug, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 189, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: None ip -json -detail link list dev veth4
returned:
exit code: 1An error should be raised when attempting to configure a veth interface owned by a podman network (or is attempting to peer to a veth owned by a podman network).