summaryrefslogtreecommitdiff
path: root/libnm-core/nm-connection.c
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2020-02-06 17:17:49 +0100
committerAntonio Cardace <acardace@redhat.com>2020-02-14 15:33:46 +0100
commiteffd7bc3e9db817d2830dd25ed02458f9b46efe7 (patch)
tree148fc9c5d1d93c23c711d88ef552abdacfe0b452 /libnm-core/nm-connection.c
parentbd37ca54bbe4318a546cc2dd41612e253246a531 (diff)
downloadNetworkManager-ac/ovs_ifname_length.tar.gz
libnm-core: use different ifname validation function for OVS bridges, ports and interfacesac/ovs_ifname_length
OVS bridges and ports do not have the length limitation of 15 bytes, the only requirements are that all chars must be alphanumeric and not be forward or backward slashes. For OVS interfaces only 'patch' types do not have the length limit, all the other types do (according to whether they have a corresponding kernel link or not). Add related unit test. https://bugzilla.redhat.com/show_bug.cgi?id=1788432
Diffstat (limited to 'libnm-core/nm-connection.c')
-rw-r--r--libnm-core/nm-connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c
index 36d2cd6dfe..072b568ed6 100644
--- a/libnm-core/nm-connection.c
+++ b/libnm-core/nm-connection.c
@@ -1239,6 +1239,7 @@ _normalize_ovs_interface_type (NMConnection *self)
self,
TRUE,
&modified,
+ NULL,
NULL);
if (v != TRUE)
g_return_val_if_reached (modified);