summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/v3po.yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-08-15 15:03:10 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-08-15 13:15:45 +0000
commita2ead5e4781ed729e3e6968b83bd4ec76cfc67aa (patch)
treed6b7b8cb640bbc9ab40f2cca9129423ffcc8fdda /v3po/api/src/main/yang/v3po.yang
parente9c1abccd9683226f1e0f73b7588164cd42dc6d9 (diff)
HONEYCOMB-139: yang model for ietf-acl draft revision 8
Change-Id: I9250e07f3811036f483959aa841897380bcb7669 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang/v3po.yang')
-rw-r--r--v3po/api/src/main/yang/v3po.yang36
1 files changed, 36 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index 9ef133979..e99da965c 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -28,6 +28,9 @@ module v3po {
import vpp-classifier {
prefix "vpp-classifier";
}
+ import ietf-access-control-list {
+ prefix "acl";
+ }
typedef bridge-domain-ref {
type leafref {
@@ -424,6 +427,31 @@ module v3po {
}
}
+ grouping ietf-acl-base-attributes {
+ description
+ "Provides limited support for ietf-acl model.";
+
+ container access-lists {
+ description
+ "Defines references to ietf-acl lists. Before assignment to interface,
+ ACL lists are merged into 3 type of acls (eth0, ip4 and ip6) that are supported by vpp.
+ Then corresponding tables and sessions are created and assigned to the interface.
+
+ Assignment update/delete removes all created tables and sessions and repeats process described above.
+ Update/delete of ACL lists referenced here is not permitted (assignment needs to be removed first).
+
+ Read is supported only for acls that were created and assigned by Honeycomb agent
+ (corresponding metadata are present).";
+ list acl {
+ key "reference";
+
+ leaf reference {
+ type acl:access-control-list-ref;
+ }
+ }
+ }
+ }
+
augment /if:interfaces/if:interface {
ext:augment-identifier "vpp-interface-augmentation";
@@ -481,6 +509,10 @@ module v3po {
container acl {
uses acl-base-attributes;
}
+
+ container ietf-acl {
+ uses ietf-acl-base-attributes;
+ }
}
container vpp {
@@ -553,6 +585,10 @@ module v3po {
container acl {
uses acl-base-attributes;
}
+
+ container ietf-acl {
+ uses ietf-acl-base-attributes;
+ }
}
augment /if:interfaces-state/if:interface/if:statistics {