[ovs-dev] [PATCH 4/5] Add PIF.currently_attached to the list of fields used by interface-reconfigure
blp at nicira.com
Wed Sep 9 17:22:09 UTC 2009
Ian Campbell <ian.campbell at citrix.com> writes:
> + # 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),
At first I was concerned that the fake currently_attached value
might confuse other bits of the code, but it looks like
interface-reconfigure really just uses a "true" value to refuse
doing things that it really shouldn't, and if we set it to
"false" then everything works out.
More information about the dev