[ovs-dev] [PATCH 4/5] Add PIF.currently_attached to the list of fields used by interface-reconfigure
Ian Campbell
ian.campbell at citrix.com
Wed Sep 9 17:09:01 UTC 2009
---
.../opt_xensource_libexec_interface-reconfigure | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure
index f4afc9f..fdb91ab 100755
--- a/xenserver/opt_xensource_libexec_interface-reconfigure
+++ b/xenserver/opt_xensource_libexec_interface-reconfigure
@@ -370,6 +370,12 @@ PIF_ATTRS = { 'uuid': (str_to_xml,str_from_xml),
'MAC': (str_to_xml,str_from_xml),
'other_config': (lambda x, p, t, v: otherconfig_to_xml(x, p, v, PIF_OTHERCONFIG_ATTRS),
lambda n: otherconfig_from_xml(n, PIF_OTHERCONFIG_ATTRS)),
+
+ # Special case: We write the current value
+ # PIF.currently-attached to the cache but since it will
+ # not be valid when we come to use the cache later
+ # (i.e. after a reboot) we always read it as False.
+ 'currently_attached': (bool_to_xml, lambda n: False),
}
PIF_OTHERCONFIG_ATTRS = [ 'domain', 'peerdns', 'defaultroute', 'mtu', 'static-routes' ] + \
--
1.5.6.5
More information about the dev
mailing list