Module: Havox::OpenFlow10::OVS::Matches
- Extended by:
- FieldParser
- Defined in:
- lib/havox/modules/openflow10/ovs/matches.rb
Constant Summary collapse
- FIELDS =
{ 'ethSrc' => :dl_src, 'ethDst' => :dl_dst, 'ethTyp' => :dl_type, 'ipSrc' => :nw_src, 'ipDst' => :nw_dst, 'ipProto' => :nw_proto, 'nwProto' => :nw_proto, 'port' => :in_port, 'switch' => :dp_id, 'tcpSrcPort' => :tp_src, 'tcpDstPort' => :tp_dst, 'vlanId' => :dl_vlan, 'vlanPcp' => :dl_vlan_pcp }
Class Method Summary collapse
Methods included from FieldParser
basic_action, parsed_ipv4, raise_unknown_action
Class Method Details
.treat(hash) ⇒ Object
27 28 29 30 31 |
# File 'lib/havox/modules/openflow10/ovs/matches.rb', line 27 def self.treat(hash) hash[:nw_src] = parsed_ipv4(hash[:nw_src]) unless hash[:nw_src].nil? hash[:nw_dst] = parsed_ipv4(hash[:nw_dst]) unless hash[:nw_dst].nil? hash end |