Skip to content

Commit

Permalink
set max range length to 120
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquebonadio-zz committed Oct 3, 2017
1 parent e5fb784 commit 245968a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions networkapi/plugins/SDN/ODL/flows/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AclFlowBuilder(object):
PRIORITY_DEFAULT = 65000
TABLE = 0
ALLOWED_FLOWS_SIZE = 5
MAX_RANGE_LENGTH = 100
MAX_RANGE_LENGTH = 120

def __init__(self, data, environment=0, version="BERYLLIUM"):

Expand Down Expand Up @@ -311,8 +311,7 @@ def _check_source_and_destination_ports(self, rule, protocol):

#this if is an temporary solution
if self._calc_length_of_range(rule)>self.MAX_RANGE_LENGTH:
#self._build_transport_source_ports(rule, protocol)
#self._build_transport_destination_ports(rule, protocol)
logging.warning("Max range lenght reached. A more permisse flow will be used.")
self.generated_all_flows_from_rule = True

elif l4_options.get(Tokens.src_port_op) == Tokens.range and \
Expand Down

0 comments on commit 245968a

Please sign in to comment.