src/examples/openflow_message/vendor-action.rb in trema-0.4.5 vs src/examples/openflow_message/vendor-action.rb in trema-0.4.6

- old
+ new

@@ -17,15 +17,15 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # class VendorActionSampleController < Controller - NX_VENDOR_ID = 0x00002320 - NXAST_NOTE = 8 + OVS_VENDOR_ID = 0x00002320 + OVSAST_NOTE = 8 def switch_ready datapath_id - body = [ NXAST_NOTE, 0x54, 0x72, 0x65, 0x6d, 0x61, 0x00 ].pack( "nC6" ) - actions = VendorAction.new( NX_VENDOR_ID, body.unpack( "C*" ) ) + body = [ OVSAST_NOTE, 0x54, 0x72, 0x65, 0x6d, 0x61, 0x00 ].pack( "nC6" ) + actions = VendorAction.new( OVS_VENDOR_ID, body.unpack( "C*" ) ) send_flow_mod_modify( datapath_id, :hard_timeout => 60, :match => Match.new, :actions => actions,