Improve ovs logging

OVS 1.2 added a log level called "off" that
is a better way to turn off logging, so we now use that in
interface-reconfigure.  It's a good idea to apply this, then, after
you update to OVS 1.2 or later.  There are no ill effects if you
don't, except that fatal errors (which wouldn't normally occur) will
be printed on the console as well as logged.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Rob Hoes <rob.hoes@citrix.com>
Update to use the new macro name after discussion with Peter

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Merge commit 'bb61988a6457aca02a394ed0456d68c071b27410'
CA-72814: networkd: ensure all default request options are used in DHCP requests

Most importantly the "ntp-servers" item was missing from the list.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge commit '0fa6f9a823a735d0ebc346f68bc808778e63dfbc'
CA-70471: Fix whitespace in Device.do_flr

$ camlp4o -printer o -no_comments ocaml/xenops/device.ml | md5sum
d41d8cd98f00b204e9800998ecf8427e

Signed-off-by: John Else <john.else@citrix.com>
CA-70471: Only attempt to call FLR hook script if it exists.

This prevents fe adding a lot of unnecessary logging to
/var/log/messages

Signed-off-by: John Else <john.else@citrix.com>
networkd: handle other-config ethtool-* settings

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: improve determine_mtu

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: add labels to API function arguments for better readability

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Fix carrier reporting of bond PIFs

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: add other_config param to Bridge.create

All key/value pairs in the other_config fields of the pool object and
the related network and PIF objects are included. If the same key
occurs multiple times, then the one from the PIF takes precedence, then
the network's, and finally the pool's.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: In Bridge.create, use vlan_bug_workaround key in other_config rather than dedicated param

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: set external-ids field on ovs bridges

Each ovs bridge is tagged with an "xs-network-uuids" key in its
external-ids map. The value of this key is set to the UUIDs of all
associated Network objects (separated by ";"), i.e. the network of
the physical or bond PIF plus the networks of all VLANs on top of it.

I don't actually know why this is needed, but I want to make sure that
networkd sets the same fields as interface-reconfigure to prevent anything
from breaking unexpectedly.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: allow static routes to be configured

Static routes can be configured by setting the "static-routes" other-config
key on a Network object.

A route is a triple of network address + prefix length + gateway address,
where the elements are separated by '/'.

Multiple routes can be specified and should be separated by commas.

Example on the CLI:

xe network-param-set uuid=<network uuid>
   other-config:static-routes=172.16.0.0/15/192.168.0.3,172.18.0.0/16/192.168.0.4

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
networkd: allow configuration of DNS domains

DNS domains are configured on PIFs with ip_configuration_mode=static by setting the
"domain" other-config key to a comma-separated list of domains.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
[xenops]: we don't need to use a low-level mechanism to check for PV drivers

We only call this function if we detect the guest agent, which is the
(non-driver) entity which performs the clean shutdown anyway.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
[xenops]: switch to xenctrlext for bindings not present in upstream xenctrl

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
networkd: allow configure of disable-in-band on ovs

To configure this, use the "vswitch-disable-in-band" other-config key,
which may be "true", "false".

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Add networkd binaries to .gitignore

Signed-off-by: John Else <john.else@citrix.com>