NetworkManager/src/settings
Thomas Haller 0c8046574e ifcfg: fix writer when changing OVS slave to clear previous settings
We need to reset the OVS_PORT and OVS_PORT_UUID variables.
Otherwise, clearing the slave type doesn't work.

On master this is solved differently, by automatically clearing all
variables that are not explicitly set.

Reproducer:

    nmcli con del t-eth1
    nmcli con add type ethernet autoconnect no ifname eth1 master port0 con-name t-eth1 slave-type ovs-port
    echo "
    remove ovs-interface
    remove connection.master
    remove connection.slave-type
    print
    save
    quit
    " | nmcli c edit t-eth1
    nmcli con show t-eth1 | grep 'ovs\|slave-type'

Fixes: 1440fe6a88 ('ifcfg: don't forget master of ovs interfaces')

https://bugzilla.redhat.com/show_bug.cgi?id=1804167
2020-02-18 18:37:45 +01:00
..
plugins ifcfg: fix writer when changing OVS slave to clear previous settings 2020-02-18 18:37:45 +01:00
nm-agent-manager.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-agent-manager.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-secret-agent.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-secret-agent.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-connection.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-connection.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-plugin.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-plugin.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-storage.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-storage.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-utils.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings.c settings: assert that we don't leak error variable in impl_settings_load_connections() 2019-12-09 09:55:16 +01:00
nm-settings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00