Commit 194de201 authored by David Johnson's avatar David Johnson

Switch to (s|d)port_range.

parent 22f33c65
Pipeline #3063 passed with stages
in 15 seconds
......@@ -126,13 +126,13 @@ class RuleMatch(Match):
NL_KEYS = list(Match.NL_KEYS)
NL_KEYS.extend([
'priority','src','dst','src_len','dst_len','iifname','oifname',
'ipproto','sport','dport'
'ipproto','sport_range','dport_range'
])
OTHER_KEYS = [ "action_id" ]
def __init__(self,family=socket.AF_INET,priority=None,
src=None,dst=None,src_len=None,dst_len=None,
iifname=None,oifname=None,ipproto=None,sport=None,dport=None,
iifname=None,oifname=None,ipproto=None,sport_range=None,dport_range=None,
action_id=None):
super(RuleMatch,self).__init__(family=family)
self.priority = priority
......@@ -143,8 +143,8 @@ class RuleMatch(Match):
self.iifname = iifname
self.oifname = oifname
self.ipproto = ipproto
self.sport = sport
self.dport = dport
self.sport_range = sport_range
self.dport_range = dport_range
self.action_id = action_id
@property
......@@ -156,7 +156,7 @@ class RuleMatch(Match):
% (str(self.priority),str(self.src),str(self.src_len),
str(self.dst),str(self.dst_len),
str(self.iifname),str(self.oifname),
str(self.ipproto),str(self.sport),str(self.dport),
str(self.ipproto),str(self.sport_range),str(self.dport_range),
str(self.action_id))
class MarkMatch(Match):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment