diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-03-23 09:39:12 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-03-29 06:20:48 +0000 |
commit | b9e4c4b1d3455201d33248739bba01c7373c2c9f (patch) | |
tree | 75ebc74eb3de89c8e69bb310325745241ecf2fa2 /acl/acl-impl/src/test/resources | |
parent | 212774e6dc3e3f74b100ac4f66420146e8f2472c (diff) |
HC2VPP-118 - reference check for acl's
Adds reference cecking before delete for Acl and MacIpAcl
Change-Id: I7acc92784498928059a96f88ba89604fc70bc075
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'acl/acl-impl/src/test/resources')
-rw-r--r-- | acl/acl-impl/src/test/resources/acl/standard/interface-ref-acl-udp.json | 21 | ||||
-rw-r--r-- | acl/acl-impl/src/test/resources/reference/acl-references.json | 57 |
2 files changed, 78 insertions, 0 deletions
diff --git a/acl/acl-impl/src/test/resources/acl/standard/interface-ref-acl-udp.json b/acl/acl-impl/src/test/resources/acl/standard/interface-ref-acl-udp.json new file mode 100644 index 000000000..ae987a798 --- /dev/null +++ b/acl/acl-impl/src/test/resources/acl/standard/interface-ref-acl-udp.json @@ -0,0 +1,21 @@ +{ + "interfaces":{ + "interface": [{ + "name": "eth2", + "acl": { + "ingress": { + "vpp-acls": [ + { + "type": "vpp-acl:vpp-acl", + "name": "standard-acl" + } + ], + "vpp-macip-acl": { + "name": "acl4", + "type": "vpp-acl:vpp-macip-acl" + } + } + } + }] + } +}
\ No newline at end of file diff --git a/acl/acl-impl/src/test/resources/reference/acl-references.json b/acl/acl-impl/src/test/resources/reference/acl-references.json new file mode 100644 index 000000000..d60eeca45 --- /dev/null +++ b/acl/acl-impl/src/test/resources/reference/acl-references.json @@ -0,0 +1,57 @@ +{ + "interfaces": { + "interface": [ + { + "name": "eth0", + "acl": { + "ingress": { + "vpp-acls": [ + { + "type": "vpp-acl", + "name": "acl1" + } + ] + } + } + }, + { + "name": "eth1", + "acl": { + "egress": { + "vpp-acls": [ + { + "type": "vpp-acl", + "name": "acl1" + } + ] + }, + "ingress": { + "vpp-acls": [ + { + "type": "vpp-acl", + "name": "acl2" + } + ] + } + } + }, + { + "name": "eth2", + "acl": { + "ingress": { + "vpp-acls": [ + { + "type": "vpp-acl", + "name": "acl1" + } + ], + "vpp-macip-acl": { + "name": "acl4", + "type": "vpp-macip-acl" + } + } + } + } + ] + } +}
\ No newline at end of file |