[nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-06 Thread false
Hi, I want setting VLAN_ID to OpenFlow by nox controller, so I edit pyswitch.py, see below: --- def forward_l2_packet(dpid, inport, packet, buf, bufid):     dstaddr = packet.dst.tostring()     print test     if

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-06 Thread Murphy McCauley
I assume that pyswitch worked okay before the modification. I took a quick look at the code in NOX for sending this action and at your code below and they both look okay at first glance. Given that, my suggestion would be one of: 1) Install the OpenFlow Wireshark plugin and examine the flow mod

Re: [nox-dev] Setting VLAN_ID by nox controller, but it's error

2011-03-06 Thread Murphy McCauley
One last thought is that... you probably also want to have an output action as well as the VLAN action. It could be that the switch assumes there will be one. -- Murphy On Mar 6, 2011, at 9:09 AM, false wrote: Hi, I want setting VLAN_ID to OpenFlow by nox controller, so I edit

Re: [nox-dev] Type Error Question

2011-03-06 Thread Aaron Rosen
Sorry, I was incorrect I am getting packet_out's. Aaron On Sat, Mar 5, 2011 at 10:50 PM, Aaron Rosen aro...@clemson.edu wrote: I've also tried this which yields the same results: if packet.next.protocol == 0x4: print UNENCAPED1 packet.next = packet.next.next