summaryrefslogtreecommitdiffstats
path: root/acl/acl-impl/src/test/resources/rules
diff options
context:
space:
mode:
Diffstat (limited to 'acl/acl-impl/src/test/resources/rules')
-rw-r--r--acl/acl-impl/src/test/resources/rules/icmp-rule.json22
-rw-r--r--acl/acl-impl/src/test/resources/rules/icmp-v6-rule.json24
-rw-r--r--acl/acl-impl/src/test/resources/rules/no-protocol-rule.json16
-rw-r--r--acl/acl-impl/src/test/resources/rules/other-rule.json26
-rw-r--r--acl/acl-impl/src/test/resources/rules/tcp-rule-no-flags.json28
-rw-r--r--acl/acl-impl/src/test/resources/rules/tcp-rule.json38
-rw-r--r--acl/acl-impl/src/test/resources/rules/udp-rule.json32
7 files changed, 83 insertions, 103 deletions
diff --git a/acl/acl-impl/src/test/resources/rules/icmp-rule.json b/acl/acl-impl/src/test/resources/rules/icmp-rule.json
index 330a448fc..dbee65ea3 100644
--- a/acl/acl-impl/src/test/resources/rules/icmp-rule.json
+++ b/acl/acl-impl/src/test/resources/rules/icmp-rule.json
@@ -1,23 +1,25 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "imcp-rule",
+ "name": "imcp-rule",
"matches": {
- "vpp-ace-nodes": {
- "destination-ipv4-network": "192.168.2.1/32",
+ "ipv4": {
"source-ipv4-network": "192.168.2.2/32",
- "icmp-nodes": {
- "icmp-type-range": {
+ "destination-ipv4-network": "192.168.2.1/32"
+ },
+ "icmp": {
+ "vpp-acl:vpp-icmp-ace": {
+ "vpp-acl:icmp-type-range": {
"first": "5",
"last": "8"
},
- "icmp-code-range": {
+ "vpp-acl:icmp-code-range": {
"first": "1",
"last": "3"
}
diff --git a/acl/acl-impl/src/test/resources/rules/icmp-v6-rule.json b/acl/acl-impl/src/test/resources/rules/icmp-v6-rule.json
index 9ea82a19a..3cb989858 100644
--- a/acl/acl-impl/src/test/resources/rules/icmp-v6-rule.json
+++ b/acl/acl-impl/src/test/resources/rules/icmp-v6-rule.json
@@ -1,23 +1,25 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "imcp-rule",
+ "name": "imcp-v6-rule",
"matches": {
- "vpp-ace-nodes": {
- "destination-ipv6-network": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64",
- "source-ipv6-network": "2001:0db8:0a0b:12f0:0000:0000:0000:0002/64",
- "icmp-v6-nodes": {
- "icmp-type-range": {
+ "ipv6": {
+ "source-ipv6-network": "2001:0db8:0a0b:12f0:0000:0000:0000:0002/48",
+ "destination-ipv6-network": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64"
+ },
+ "icmp": {
+ "vpp-acl:vpp-icmp-ace": {
+ "vpp-acl:icmp-type-range": {
"first": "5",
"last": "8"
},
- "icmp-code-range": {
+ "vpp-acl:icmp-code-range": {
"first": "1",
"last": "3"
}
diff --git a/acl/acl-impl/src/test/resources/rules/no-protocol-rule.json b/acl/acl-impl/src/test/resources/rules/no-protocol-rule.json
index a022bf08d..dad0f05bb 100644
--- a/acl/acl-impl/src/test/resources/rules/no-protocol-rule.json
+++ b/acl/acl-impl/src/test/resources/rules/no-protocol-rule.json
@@ -1,17 +1,17 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "no-protocol-rule",
+ "name": "no-protocol-rule",
"matches": {
- "vpp-ace-nodes": {
- "destination-ipv4-network": "192.168.2.1/32",
- "source-ipv4-network": "192.168.2.2/32"
+ "ipv4": {
+ "source-ipv4-network": "192.168.2.2/32",
+ "destination-ipv4-network": "192.168.2.1/32"
}
}
}
diff --git a/acl/acl-impl/src/test/resources/rules/other-rule.json b/acl/acl-impl/src/test/resources/rules/other-rule.json
deleted file mode 100644
index 0e60dccf7..000000000
--- a/acl/acl-impl/src/test/resources/rules/other-rule.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "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",
- "other-nodes": {
- "protocol": "64"
- }
- }
- }
- }
- ]
- }
- }
- ]
- }
-} \ No newline at end of file
diff --git a/acl/acl-impl/src/test/resources/rules/tcp-rule-no-flags.json b/acl/acl-impl/src/test/resources/rules/tcp-rule-no-flags.json
index 31cc854df..2130f4a32 100644
--- a/acl/acl-impl/src/test/resources/rules/tcp-rule-no-flags.json
+++ b/acl/acl-impl/src/test/resources/rules/tcp-rule-no-flags.json
@@ -1,24 +1,24 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "tcp-no-flags-rule",
+ "name": "tcp-no-flags-rule",
"matches": {
- "vpp-ace-nodes": {
+ "ipv4": {
"destination-ipv4-network": "192.168.2.1/32",
- "source-ipv4-network": "192.168.2.2/32",
- "tcp-nodes": {
- "source-port-range": {
- "lower-port": "123"
- },
- "destination-port-range": {
- "lower-port": "65000"
- }
+ "source-ipv4-network": "192.168.2.2/32"
+ },
+ "tcp": {
+ "source-port": {
+ "lower-port": "123"
+ },
+ "destination-port": {
+ "lower-port": "65000"
}
}
}
diff --git a/acl/acl-impl/src/test/resources/rules/tcp-rule.json b/acl/acl-impl/src/test/resources/rules/tcp-rule.json
index de3697eef..95fa836d4 100644
--- a/acl/acl-impl/src/test/resources/rules/tcp-rule.json
+++ b/acl/acl-impl/src/test/resources/rules/tcp-rule.json
@@ -1,28 +1,30 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "imcp-rule",
+ "name": "tcp-rule",
"matches": {
- "vpp-ace-nodes": {
+ "ipv4": {
"destination-ipv4-network": "192.168.2.1/32",
- "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"
+ "source-ipv4-network": "192.168.2.2/32"
+ },
+ "tcp": {
+ "source-port": {
+ "lower-port": "1",
+ "upper-port": "5487"
+ },
+ "destination-port": {
+ "lower-port": "87",
+ "upper-port": "6745"
+ },
+ "flags": "cwr ece urg",
+ "vpp-acl:vpp-tcp-ace": {
+ "vpp-acl:flags-mask": "cwr"
}
}
}
diff --git a/acl/acl-impl/src/test/resources/rules/udp-rule.json b/acl/acl-impl/src/test/resources/rules/udp-rule.json
index 4bc05d4b2..8ee8b82d6 100644
--- a/acl/acl-impl/src/test/resources/rules/udp-rule.json
+++ b/acl/acl-impl/src/test/resources/rules/udp-rule.json
@@ -1,26 +1,26 @@
{
- "access-lists": {
+ "acls": {
"acl": [
{
- "acl-name": "standard-acl",
- "acl-type": "vpp-acl:vpp-acl",
- "access-list-entries": {
+ "name": "standard-acl",
+ "type": "vpp-acl:vpp-acl",
+ "aces": {
"ace": [
{
- "rule-name": "imcp-rule",
+ "name": "imcp-rule",
"matches": {
- "vpp-ace-nodes": {
+ "ipv4": {
"destination-ipv4-network": "192.168.2.1/32",
- "source-ipv4-network": "192.168.2.2/32",
- "udp-nodes": {
- "source-port-range": {
- "lower-port": "1",
- "upper-port": "5487"
- },
- "destination-port-range": {
- "lower-port": "87",
- "upper-port": "6745"
- }
+ "source-ipv4-network": "192.168.2.2/32"
+ },
+ "udp": {
+ "source-port": {
+ "lower-port": "1",
+ "upper-port": "5487"
+ },
+ "destination-port": {
+ "lower-port": "87",
+ "upper-port": "6745"
}
}
}