question about createSwitch

111 views
Skip to first unread message

sangyun-han

unread,
Apr 2, 2015, 11:02:15 PM4/2/15
to ovx-d...@googlegroups.com
Hi all
I am in the process of testing ONOS & OVX on real machine.
I already built ONOS environment and connected OpenVSwitch.
I want to make OVX Big switch with OpenVSwitchs but my plans keep falling through.
Because of 'createSwitch' part.
I identify OVS's DPID through ONOS controller, but OVX doesn't perceive these physical switch.

This is error log


python ovxctl.py -n createSwitch 1 00:00:00:00:00:00:04:9b,00:00:00:00:00:00:32:fc,00:00:00:00:00:00:04:dc,00:00:00:00:00:00:32:ba


{u'jsonrpc': u'2.0', u'id': u'ovxctl', u'error': {u'message': u'CreateOVXSwitch: Invalid DPID : One of the physical dpids that you have provided does not refer to a switch in the physical plane. DPID: 1179', u'code': -32602}}



This is information about ONOS controller's device

onos> devices
id=of:000000000000049b, available=true, role=MASTER, type=SWITCH, mfr=Nicira Networks, Inc., hw=Open vSwitch, sw=1.4.2, serial=None, protocol=OF_10
id=of:00000000000004dc, available=true, role=MASTER, type=SWITCH, mfr=Nicira Networks, Inc., hw=Open vSwitch, sw=1.4.2, serial=None, protocol=OF_10
id=of:00000000000032ba, available=true, role=MASTER, type=SWITCH, mfr=Nicira Networks, Inc., hw=Open vSwitch, sw=1.4.2, serial=None, protocol=OF_10
id=of:00000000000032fc, available=true, role=MASTER, type=SWITCH, mfr=Nicira Networks, Inc., hw=Open vSwitch, sw=1.4.2, serial=None, protocol=OF_10

Marc De Leenheer

unread,
Apr 2, 2015, 11:31:57 PM4/2/15
to sangyun-han, ovx-d...@googlegroups.com

The 'normal' deployment model is to run ONOS on top of OVX. So you should connect your switches to OVX, and then create a virtual network that points to ONOS.

marc

--
You received this message because you are subscribed to the Google Groups "OpenVirteX-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ovx-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sangyun-han

unread,
Apr 3, 2015, 7:55:22 AM4/3/15
to ovx-d...@googlegroups.com, sangy...@gmail.com
My question is that!
How do i connect switch to OVX without error message like this. ("One of the physical dpids that you have provided does not refer to a switch in the physical plane")
Do the error message mean that i have wrong DPID?

And, If i would be successful in connecting switch to OVX, Should i use [addControllers] command to connect ONOS controller?

,like this
Switch --- OVX -- ONOS




2015년 4월 3일 금요일 오후 12시 31분 57초 UTC+9, Marc De Leenheer 님의 말:

Marc De Leenheer

unread,
Apr 3, 2015, 12:52:43 PM4/3/15
to sangyun-han, ovx-d...@googlegroups.com

In Open Flow, the switch initiates the connection to the controller. So:

1) point your switch to OVX. When you use Open vSwitch, you do something like (BRIDGE is name of bridge, OVX_IP is IP address of OVX).

sudo ovs-vsctl set-controller BRIDGE tcp:OVX_IP:6633

Check the documentation for you hardware switch on how to configure OpenFlow.

2) point OVX to ONOS. First, create a virtual network, then create virtual switches

ovxctl.py -n createNetwork ONOS_IP SUBNET MASK
ovxctl.py -n createSwitch TENANT_ID DPIDS

Here, ONOS_IP is the IP address of ONOS, SUBNET and MASK specify the subnet for your virtual network. You can find the TENANT_ID in the response of the createNetwork call, and DPIDS is a list of the physical DPIDs you want (so the DPIDs of the Open vSwitches and the hardware switches).

marc

sangyun-han

unread,
Apr 5, 2015, 9:35:49 PM4/5/15
to ovx-d...@googlegroups.com, sangy...@gmail.com
Thanks marc ^^

I will try again


2015년 4월 4일 토요일 오전 1시 52분 43초 UTC+9, Marc De Leenheer 님의 말:
Reply all
Reply to author
Forward
0 new messages