diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/firewall.py | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index a4fd64830..ea28aa91d 100644 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -266,9 +266,9 @@ def parse_rule(rule_conf, fw_name, rule_id, ip_name):                      output.append(icmp + ' type ' + rule_conf[icmp]['type']) -    if 'ip_length' in rule_conf: +    if 'packet_length' in rule_conf:          #proto = rule_conf['protocol'] -        length = rule_conf['ip_length'].split(',') +        length = rule_conf['packet_length'].split(',')          lengths = []          negated_lengths = [] @@ -279,9 +279,6 @@ def parse_rule(rule_conf, fw_name, rule_id, ip_name):              else:                  lengths.append(p) -                #if proto == 'tcp_udp': -                #    proto = 'th' -          if lengths:              lengths_str = ','.join(lengths)              output.append(f'ip{def_suffix} length {{{lengths_str}}}') | 
