On Thu, Sep 22, 2016 at 10:24:46PM +0200, olichtne(a)redhat.com wrote:
From: Ondrej Lichtner <olichtne(a)redhat.com>
The up() methods of NetConfigDevice and NmConfigDevice derived classes
handled both setting the device up and applying ip addresses (activating
connections, with ip addresses). Unfortunately this approach causes
problems when using NM to configure interfaces in master-slave
relationships (e.g. bond with ipv6 address and simple ethernet with no
configuration).
The solution to our NM related issues was to activate all connections
without ip address configuration, then add ip addresses to the
connections and call Reapply().
For this to work properly I also split the corresponding up() method in
NetConfigDevice classes so that the interfaces are compatible.
I split the inverse down() method into address_cleanup+down for
consistency.
This commit also propagates these changes to the rest of the LNST code
that needs to now use these new methods.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
pushed
-Ondrej