I'm going to go with this btw unless there is an objection:
xenserver: Don't openvswitch-xapi-update in bridge mode.
This commit causes the init scripts not to call the
openvswitch-cfg-update plugin when in bridge mode.
On Tue, Apr 12, 2011 at 11:31 AM, Ethan Jackson <[email protected]> wrote:
> Sounds fine to me ill change the message before merging.
>
> Ethan
>
> On Mon, Apr 11, 2011 at 6:52 PM, Andrew Evans <[email protected]> wrote:
>> The patch looks good to me. I think a better title for the commit would
>> be "Only update vswitch config from XAPI if vswitch is enabled."
>>
>> On 4/11/11 6:33 PM, Ethan Jackson wrote:
>>> ---
>>> xenserver/etc_init.d_openvswitch-xapi-update | 17 +++++++++++++++++
>>> 1 files changed, 17 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/xenserver/etc_init.d_openvswitch-xapi-update
>>> b/xenserver/etc_init.d_openvswitch-xapi-update
>>> index 7b2efd1..14d2cc9 100755
>>> --- a/xenserver/etc_init.d_openvswitch-xapi-update
>>> +++ b/xenserver/etc_init.d_openvswitch-xapi-update
>>> @@ -39,6 +39,23 @@ function start {
>>> printf "openvswitch-xapi-update ERROR: XenSource inventory not
>>> present in /etc/xensource-inventory\n"
>>> exit 1
>>> fi
>>> +
>>> + if test -e /etc/xensource/network.conf; then
>>> + NETWORK_MODE=$(cat /etc/xensource/network.conf)
>>> + fi
>>> +
>>> + case ${NETWORK_MODE:=openvswitch} in
>>> + vswitch|openvswitch)
>>> + ;;
>>> + bridge)
>>> + exit 0
>>> + ;;
>>> + *)
>>> + echo "Open vSwitch disabled (/etc/xensource/network.conf is
>>> invalid)" >&2
>>> + exit 0
>>> + ;;
>>> + esac
>>> +
>>> source /etc/xensource-inventory
>>> action "Updating configuration" do_host_call
>>> }
>>
>>
>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev