summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
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