lib/pio/open_flow10/flow_mod.rb in pio-0.24.2 vs lib/pio/open_flow10/flow_mod.rb in pio-0.25.0

- old
+ new

@@ -29,34 +29,19 @@ end end # Message body of FlowMod. class Body < BinData::Record - # Pio::MatchFormat wrapper. - class Match < BinData::Primitive - endian :big - - string :match, read_length: 40 - - def set(object) - self.match = object.to_binary_s - end - - def get - Pio::OpenFlow10::Match.read match - end - end - extend OpenFlow::Flags flags_16bit :flags, [:send_flow_rem, :check_overwrap, :emerg] endian :big - match :match + match_open_flow10 :match uint64 :cookie command :command uint16 :idle_timeout uint16 :hard_timeout uint16 :priority