Skip to content

Commit 24ca3a2

Browse files
* Bugfix: Fixed issue where acl-config fails to load acl configuration (#30)
from acl-config.yaml (open-switch/opx-cps#114) Signed-off-by: Gunasekaran Tamilara <[email protected]>
1 parent 2fcadab commit 24ca3a2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
opx-nas-acl (2.12.2) unstable; urgency=medium
2+
3+
* Bugfix: Fixed issue where acl-config fails to load acl configuration from acl-config.yaml
4+
5+
-- Dell EMC <[email protected]> Wed, 19 Feb 2020 04:16:39 -0800
6+
17
opx-nas-acl (2.12.1) unstable; urgency=medium
28

39
* Feature: Trap group support

scripts/bin/acl-config

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ _key_for_cfg = cps.key_from_name('target',_KEY)
3636
_key_for_reload = cps.key_from_name('target','acl-config/reload')
3737

3838

39-
_valid_match_fields_in=['SRC_IP','DST_IP','OUT_INTF','SRC_INTF','L4_SRC_PORT','L4_DST_PORT','SRC_MAC','DST_MAC','IP_PROTOCOL','TCP_FLAGS']
39+
_valid_match_fields_in=['SRC_IP','DST_IP','IN_PORT','OUT_PORT','L4_SRC_PORT','L4_DST_PORT','SRC_MAC','DST_MAC','IP_PROTOCOL','TCP_FLAGS']
4040

41-
_valid_match_fields_eg=['DST_IP', 'L4_SRC_PORT', 'L4_DST_PORT', 'IP_PROTOCOL', 'OUT_INTF']
41+
_valid_match_fields_eg=['SRC_IP','DST_IP','IN_PORT','OUT_PORT','L4_SRC_PORT','L4_DST_PORT','SRC_MAC','DST_MAC','IP_PROTOCOL','TCP_FLAGS']
4242

4343
_default_table_prio = 110
4444
_default_entry_prio = 30
@@ -228,10 +228,10 @@ def __acl_cfg_to_acl_entry(obj, create_if_not_there=False):
228228

229229

230230
if _args['in_interface']!=None:
231-
_filters['SRC_INTF'] = _args['in_interface']
231+
_filters['IN_PORT'] = _args['in_interface']
232232

233233
if _args['out_interface']!=None:
234-
_filters['OUT_INTF'] = _args['out_interface']
234+
_filters['OUT_PORT'] = _args['out_interface']
235235

236236
if _args['protocol']!=None:
237237
with open('/etc/protocols') as f:

0 commit comments

Comments
 (0)