On 10/29/2015 05:19 PM, Gurucharan Shetty wrote:
I do however understand your concern with the proposed fix.
We are trying to stay agnostic to the underlay interface (eth, vlan,
bond...) and let the kernel handle it. Otherwise the controller would
have to be aware of the way each server connects to the underlay and that
may not be uniform.

I think I did not understand what you mean above. Why is using the
Open vSwitch VLAN device instead of Linux VLAN device a problem again?


Or some
other way to do this.


any suggestions?

I can't think of a something right of the top of my head. We have
similar dependency issues with NFS startup scripts and they don't have
a solution either.
Ubuntu 15.04 and later is moving towards systemd and this whole
'interfaces' integration and dependency issues needs to be re-visited.
So I am hesitant to work on a quick fix here, unless you think of
something.


u'r right. no point in applying this patch since it will be thrown away when we reach 15.04 I was able to create a workaround for this problem using the 'pre-up' option as follows.

allow-ovs br-foo
iface br-foo inet static
    address 1.1.1.1
    netmask 255.255.255.0
    ovs_type OVSBridge
    ovs_ports eth1.2052
    pre-up IFACE=eth1.2052; /etc/network/if-pre-up.d/vlan

# Interface eth1.2052
allow-br-foo eth1.2052
iface eth1.2052 inet manual
    ovs_type OVSPort
    ovs_bridge br-foo
    bridge_name br-foo

thanks.





---
   debian/openvswitch-switch.links | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/openvswitch-switch.links
b/debian/openvswitch-switch.links
index cf58073..5c7b1f1 100644
--- a/debian/openvswitch-switch.links
+++ b/debian/openvswitch-switch.links
@@ -1,2 +1,2 @@
   usr/share/openvswitch/scripts/ifupdown.sh
etc/network/if-post-down.d/openvswitch
-usr/share/openvswitch/scripts/ifupdown.sh
etc/network/if-pre-up.d/openvswitch
+usr/share/openvswitch/scripts/ifupdown.sh
etc/network/if-pre-up.d/z09_openvswitch
--
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to