sdn - RYU: Simple switch test is giving OFPBAC_BAD_OUT_PORT error -
i running simple switch test simple switch test
i running on real sdn switch , openvswitch installed on server. port numbers correct. mapping of port numbers correct. port number 30
on real sdn switch , connected port 1
on openvswitch conncected together. 3 links connected between server(openvswitch) , switch(real)
my json file
[ "action: 00_output", { "description": "ethernet/ipv4/tcp-->'actions=output:30'", "prerequisite":[ { "ofpflowmod":{ "table_id":0, "instructions":[ { "ofpinstructionactions":{ "actions":[ { "ofpactionoutput":{ "port":30 } } ], "type":4 } } ] } } ], "tests":[ { "ingress":[ "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)", "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)", "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)", "'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'" ], "egress":[ "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)", "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)", "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)", "'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'" ] } ] } ]
i getting error while running.
action: 00_output event ofp_event->oftester eventofpbarrierreply event ofp_event->oftester eventofpbarrierreply event ofp_event->oftester eventofperrormsg eventofperrormsg received. version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x4a52bf20 `-- msg_type: ofpt_error(1) ofperrormsg(type=0x2, code=0x4, data=b'\x04\x0e\x00\x50\x4a\x52\xbf\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x04\x00\x18\x00\x00\x00\x00') |-- type: ofpet_bad_action(2) |-- code: ofpbac_bad_out_port(4) `-- data: version=0x4, msg_type=0xe, msg_len=0x50, xid=0x4a52bf20 `-- msg_type: ofpt_flow_mod(14) event ofp_event->oftester eventofpbarrierreply ethernet/ipv4/tcp-->'actions=output:target_send_port_1' error failed add flows: ofperrormsg[type=0x02, code=0x04]
Comments
Post a Comment