NetworkManager/libnm
Fernando Fernandez Mancera cd0cf9229d
veth: add support to configure veth interfaces
NetworkManager is now able to configure veth interfaces throught the
NMSettingVeth. Veth interfaces only have "peer" property.

In order to support Veth interfaces in NetworkManager the design need
to pass the following requirements:

 * Veth setting only has "peer" attribute.
 * Ethernet profiles must be applicable to Veth interfaces.
 * When creating a veth interface, the peer will be managed by
   NetworkManager but will not have a profile.
 * Veth connection can reapply only if the peer has not been modified.
 * In order to modify the veth peer, NetworkManager must deactivate the
   connection and create a new one with peer modified.

In general, it should support the basis of veth interfaces but without
breaking any existing feature or use case. The users that are using veth
interfaces as ethernet should not notice anything changed unless they
specified the veth peer setting.

Creating a Veth interface in NetworkManager is useful even without the
support for namespaces for some use cases, e.g "connecting one side of
the veth to an OVS bridge and the other side to a Linux bridge" this is
done when using OVN kubernetes [1][2]. In addition, it would provide
persistent configuration and rollback support for Veth interfaces.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1885605
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1894139

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
2020-11-27 10:12:36 +01:00
..
nm-libnm-aux all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
tests libnm/tests: add unit test for more consistency check of NMObject type information 2020-11-18 11:41:26 +01:00
libnm.pc.in libnm,pkg-config: provide a variable with VPN service directory 2015-08-19 15:13:11 +02:00
libnm.ver veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
meson.build veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
NetworkManager.h veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-access-point.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-access-point.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-active-connection.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-active-connection.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-autoptr.h veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-checkpoint.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-checkpoint.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-client.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-client.h libnm: add nm_utils_print() function 2020-11-09 17:25:25 +01:00
nm-dbus-helpers.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dbus-helpers.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-6lowpan.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-6lowpan.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-adsl.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-adsl.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-bond.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-bond.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-bridge.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-bridge.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-bt.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-bt.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-dummy.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-dummy.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ethernet.c veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-device-ethernet.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-generic.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-generic.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-infiniband.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-infiniband.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ip-tunnel.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-ip-tunnel.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-macsec.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-macsec.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-macvlan.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-macvlan.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-modem.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-modem.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-olpc-mesh.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-olpc-mesh.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ovs-bridge.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-ovs-bridge.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ovs-interface.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-ovs-interface.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ovs-port.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-ovs-port.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-ppp.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-ppp.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-private.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-team.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-team.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-tun.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-tun.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-veth.c veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-device-veth.h veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-device-vlan.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-vlan.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-vrf.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-vrf.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-vxlan.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-vxlan.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wifi-p2p.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-wifi-p2p.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wifi.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-wifi.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wimax.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wimax.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wireguard.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-wireguard.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device-wpan.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-device-wpan.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-device.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dhcp-config.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-dhcp-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dhcp4-config.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dhcp4-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dhcp6-config.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dhcp6-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dns-manager.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-dns-manager.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-enum-types.c.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
nm-enum-types.h.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
nm-ip-config.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-ip-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-ip4-config.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-ip4-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-ip6-config.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-ip6-config.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-libnm-utils.c libnm: add nm_utils_print() function 2020-11-09 17:25:25 +01:00
nm-libnm-utils.h ethernet: define NMDeviceEthernet on nm-libnm-utils.h 2020-11-27 10:12:36 +01:00
nm-object-private.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-object.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-object.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-remote-connection-private.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-remote-connection.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-remote-connection.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-secret-agent-old.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-secret-agent-old.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-types.h veth: add support to configure veth interfaces 2020-11-27 10:12:36 +01:00
nm-vpn-connection.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-vpn-connection.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-editor.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-editor.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-plugin-old.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-plugin-old.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-service-plugin.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-vpn-service-plugin.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-wifi-p2p-peer.c libnm/trivial: rename enums NML_DBUS_META_INTERFACE_PRIO_INSTANTIATE_* 2020-11-18 10:21:57 +01:00
nm-wifi-p2p-peer.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-wimax-nsp.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-wimax-nsp.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00