diff --git a/daemon/core/services/sdn.py b/daemon/core/services/sdn.py index 413ea8d6..0aa824f9 100644 --- a/daemon/core/services/sdn.py +++ b/daemon/core/services/sdn.py @@ -42,7 +42,7 @@ class OvsService(SdnService): cfg += "# auto-generated by OvsService (OvsService.py)\n" cfg += "/etc/init.d/openvswitch-switch start < /dev/null\n" cfg += "ovs-vsctl add-br ovsbr0 -- set Bridge ovsbr0 fail-mode=secure\n" - cfg += "ifconfig ovsbr0 up\n" + cfg += "ip link set dev ovsbr0 up\n" for ifc in node.netifs(): if hasattr(ifc, "control") and ifc.control is True: @@ -52,8 +52,8 @@ class OvsService(SdnService): # create virtual interfaces cfg += "ip link add rtr%s type veth peer name sw%s\n" % (ifnum, ifnum) - cfg += "ifconfig rtr%s up\n" % ifnum - cfg += "ifconfig sw%s up\n" % ifnum + cfg += "ip link set dev rtr%s up\n" % ifnum + cfg += "ip link set dev sw%s up\n" % ifnum # remove ip address of eths because quagga/zebra will assign same IPs to rtr interfaces # or assign them manually to rtr interfaces if zebra is not running