From f8273e10b19ecc82bdda81feef9982ce28d5de21 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Fri, 16 Dec 2016 13:07:56 +0100 Subject: HONEYCOMB-310: translation layer for acl plugin Not covered by this patch (moved to subsequent commits): - postman collection - distinguish ingress/egress ACLs while reading assigned acls - proper support for acl tag - unit tests improvements - read for acls (not necessarily assigned) - initializers Change-Id: I5a198ce1a6e20d0b1d95b4d2d83d0464fb86580c Signed-off-by: Jan Srnicek Signed-off-by: Marek Gradzki --- .../src/test/resources/rules/icmp-rule.json | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 acl/acl-impl/src/test/resources/rules/icmp-rule.json (limited to 'acl/acl-impl/src/test/resources/rules/icmp-rule.json') diff --git a/acl/acl-impl/src/test/resources/rules/icmp-rule.json b/acl/acl-impl/src/test/resources/rules/icmp-rule.json new file mode 100644 index 000000000..330a448fc --- /dev/null +++ b/acl/acl-impl/src/test/resources/rules/icmp-rule.json @@ -0,0 +1,33 @@ +{ + "access-lists": { + "acl": [ + { + "acl-name": "standard-acl", + "acl-type": "vpp-acl:vpp-acl", + "access-list-entries": { + "ace": [ + { + "rule-name": "imcp-rule", + "matches": { + "vpp-ace-nodes": { + "destination-ipv4-network": "192.168.2.1/32", + "source-ipv4-network": "192.168.2.2/32", + "icmp-nodes": { + "icmp-type-range": { + "first": "5", + "last": "8" + }, + "icmp-code-range": { + "first": "1", + "last": "3" + } + } + } + } + } + ] + } + } + ] + } +} \ No newline at end of file -- cgit 1.2.3-korg