CA-116420: when creating linux bond, add MAC address after adding bond slaves

This is needed under kernel 3.x, because the kernel now changes the bond MAC to
the MAC of the first slave that is added, which is not always what we want.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Use syslog from xcp-idl

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Release 0.9.3

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-105789: Ensure the bridge has the correct MAC on first boot

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Use the interface name, not the bridge name when looking up MAC

This is for firstboot and for when xe-reset-networking has been
executed.

Acked-by: Rob Hoes <rob.hoes@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Add .merlin file

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Remove http-svr dependency

networkd has been using cohttp via xcp-idl since commit
e6b2f0774b71683b4a970ce64c96e6d31f11e488

Signed-off-by: John Else <john.else@citrix.com>
CA-99828 Add a new bond option: lacp-fallback-ab

lacp-fallback-ab allows lacp bond to fallback to active-backup
when there is no lacp partner.

Signed-off-by: Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
CA-121503 - Make use of rc and stderr when appropriate.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Fix up tabs vs spaces
Use begin/end blocks correctly.
add config file for network.conf to select the backend type

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-120846: fix get_mac for bonded interfaces

When an interface is bonded by the Linux bonding driver, the driver may change
the MAC address of the interface to that of the bond. The only place where you
can find the "real" MAC address of a bond slave seems to be /proc/net/bonding.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-114498: Linux bonding: set properties (e.g. mode) before adding slaves

This is needed to get LACP bonding to work on the Linux bridge backend.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
 CA-118425/SCTX-1559: Remove interfaces from bridge before creating VLAN on it

This avoids problems in case the bridge already existed for some reason, e.g.
because it was not cleaned up due to an earlier error condition.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
s/Stringext/Xstringext/g

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Release 0.9.4

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Update oasis

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-137227: Checking xen-backend in link of /sys/class/net/*/device/driver to identify vifs

Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>
Don't let naughty dhcp servers trick us into setting default routes.

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>