summaryrefslogtreecommitdiffstats
path: root/acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-06-16 14:36:52 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-06-16 14:55:14 +0200
commitb4581d183065af6b82026003959b96fbe6850dd1 (patch)
tree6d7f8654ce4eeb13350a3d32314bd267a79c9c61 /acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang
parentc312c69343e8336456a109ff82d9bc4c6dc9b1ea (diff)
Rename yang files to match model revision
Also order of revisions was sorted starting from most current. Change-Id: I21fd35cfdb1cc5601b3fb40c9f3755bd3b995b14 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang')
-rw-r--r--acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang66
1 files changed, 66 insertions, 0 deletions
diff --git a/acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang b/acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang
new file mode 100644
index 000000000..fde7f6346
--- /dev/null
+++ b/acl/acl-api/src/main/yang/vpp-acl-context@2017-01-04.yang
@@ -0,0 +1,66 @@
+module vpp-acl-context {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl:context";
+ prefix "nc";
+
+ description "Context for vpp-acl assignment mapping";
+
+ revision "2017-01-04" {
+ description "Initial revision.";
+ }
+
+ import naming-context {
+ prefix "nc";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ grouping vpp-acl-context-attributes {
+ container vpp-acl-mappings {
+ list vpp-acl-context {
+
+ key "name";
+
+ leaf name {
+ type string;
+ description "vpp-acl context name";
+ }
+
+ list acl-mapping {
+ key "name";
+
+ leaf name {
+ type string;
+ description "ACL name";
+ }
+
+ leaf index {
+ type int32;
+ description "ACL index";
+ }
+
+ list ace-mapping {
+ key "name";
+
+ leaf name {
+ type string;
+ description "ACEs name";
+ }
+
+ leaf index {
+ type int32;
+ description "ACE index";
+ }
+ }
+ }
+ }
+ }
+ }
+
+ augment /nc:contexts {
+ ext:augment-identifier "vpp-acl-context-augmentation";
+ uses vpp-acl-context-attributes;
+ }
+} \ No newline at end of file