diff options
author | Antonio Cardace <acardace@redhat.com> | 2020-02-06 17:17:49 +0100 |
---|---|---|
committer | Antonio Cardace <acardace@redhat.com> | 2020-02-14 15:33:46 +0100 |
commit | effd7bc3e9db817d2830dd25ed02458f9b46efe7 (patch) | |
tree | 148fc9c5d1d93c23c711d88ef552abdacfe0b452 /libnm-core/nm-connection.c | |
parent | bd37ca54bbe4318a546cc2dd41612e253246a531 (diff) | |
download | NetworkManager-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.c | 1 |
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); |