diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-01-11 10:11:20 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-01-11 11:53:34 +0000 |
commit | 2d92edf65ee34329d9226e2efe90a5d10265cd72 (patch) | |
tree | 3903582031f568e4499abaf6b42c4943cd34a9a5 /acl/acl-impl/src/test/resources | |
parent | a013f06756f8906355688baf67bf2b1af9da959a (diff) |
Fix NPE in L3 rules
Patch introduces proper handling for IP adresses,
which are optional.
Change-Id: Ib009207b4b241d3e2b8c665a35bb1ff87b4a12ac
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit e0b4359b39acfe8a583089117a0c2485b85ff7e4)
Diffstat (limited to 'acl/acl-impl/src/test/resources')
-rw-r--r-- | acl/acl-impl/src/test/resources/acl/standard/standard-acl-tcp-src-only.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/acl/acl-impl/src/test/resources/acl/standard/standard-acl-tcp-src-only.json b/acl/acl-impl/src/test/resources/acl/standard/standard-acl-tcp-src-only.json new file mode 100644 index 000000000..48e6f8807 --- /dev/null +++ b/acl/acl-impl/src/test/resources/acl/standard/standard-acl-tcp-src-only.json @@ -0,0 +1,37 @@ +{ + "access-lists": { + "acl": [ + { + "acl-name": "standard-acl", + "acl-type": "vpp-acl:vpp-acl", + "access-list-entries": { + "ace": [ + { + "rule-name": "tcp-rule", + "matches": { + "vpp-ace-nodes": { + "source-ipv4-network": "192.168.2.2/32", + "tcp-nodes": { + "source-port-range": { + "lower-port": "1", + "upper-port": "5487" + }, + "destination-port-range": { + "lower-port": "87", + "upper-port": "6745" + }, + "tcp-flags-mask": "1", + "tcp-flags-value": "7" + } + } + }, + "actions": { + "permit": {} + } + } + ] + } + } + ] + } +}
\ No newline at end of file |