summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-10-19 14:50:04 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-10-21 06:56:02 +0000
commitc6a4cd27ec02abf2a90535795cc6529f891e75fa (patch)
tree8e50f4029cf895fe8ea9789fa5bf91366e203aa5 /v3po/api
parentb998c9e140a4c3c39138a8e9c746be3d025dff8a (diff)
HONEYCOMB-264: cache classify table delete
Change-Id: I8b43f9a6220b90aaed5d85d60c0d2095518d6226 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api')
-rw-r--r--v3po/api/pom.xml5
-rw-r--r--v3po/api/src/main/yang/ietf-acl-context.yang67
2 files changed, 72 insertions, 0 deletions
diff --git a/v3po/api/pom.xml b/v3po/api/pom.xml
index 4f1210970..b625f79df 100644
--- a/v3po/api/pom.xml
+++ b/v3po/api/pom.xml
@@ -49,5 +49,10 @@
<groupId>org.opendaylight.mdsal.model</groupId>
<artifactId>yang-ext</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.fd.honeycomb.vpp</groupId>
+ <artifactId>naming-context-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project>
diff --git a/v3po/api/src/main/yang/ietf-acl-context.yang b/v3po/api/src/main/yang/ietf-acl-context.yang
new file mode 100644
index 000000000..71bfb73e4
--- /dev/null
+++ b/v3po/api/src/main/yang/ietf-acl-context.yang
@@ -0,0 +1,67 @@
+module ietf-acl-context {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl:context";
+ prefix "nc";
+
+ description "Context for nat mapping";
+
+ revision "2016-12-14" {
+ description "Initial revision.";
+ }
+
+ import ietf-inet-types {
+ prefix "inet";
+ }
+
+ import naming-context {
+ prefix "nc";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ grouping mapping-entry-context-attributes {
+ container acl-mapping-entry-context {
+ list mapping-table {
+ key "direction";
+
+ leaf direction {
+ type enumeration {
+ enum "ingress";
+ enum "egress";
+ }
+ }
+
+ list mapping-entry {
+ key "index";
+
+ leaf index {
+ type int32;
+ description "interface id";
+ }
+
+ leaf ip4_table_id {
+ type int32;
+ description "ip4 table id";
+ }
+
+ leaf ip6_table_id {
+ type int32;
+ description "ip6 table id";
+ }
+
+ leaf l2_table_id {
+ type int32;
+ description "l2 table id";
+ }
+ }
+ }
+ }
+ }
+
+ augment /nc:contexts {
+ ext:augment-identifier "acl-mapping-entry-ctx-augmentation";
+ uses mapping-entry-context-attributes;
+ }
+} \ No newline at end of file