summaryrefslogtreecommitdiffstats
path: root/nsh/api
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-09-02 22:18:43 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-09-14 02:35:12 +0000
commita736959174f81467f59a45c1a913ae37ded9697a (patch)
tree5a8dd4815e7c1ded372582fdf568aa2be135e49a /nsh/api
parentd6d2177bd32b8073aaaf0c384b27d1589d5edbf5 (diff)
HONEYCOMB-46: Add NSH_SFC Feature in Honeycomb
Cherry pick to master PatchSet 9: Remove unused imports PatchSet 8: Fix interface DI broken PatchSet 7: Move VppNshModule to distribution PatchSet 2: Augment with encap-if-name for nsh-map Change-Id: Ia12afb72edfe804f26b84021b997d55db3129933 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh/api')
-rw-r--r--nsh/api/pom.xml8
-rw-r--r--nsh/api/src/main/yang/vpp-nsh.yang48
2 files changed, 31 insertions, 25 deletions
diff --git a/nsh/api/pom.xml b/nsh/api/pom.xml
index 94c6e772d..07684b1f0 100644
--- a/nsh/api/pom.xml
+++ b/nsh/api/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2015 Cisco and/or its affiliates.
+ Copyright (c) 2015 Intel and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
@@ -23,8 +23,8 @@
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>io.fd.honeycomb.v3po</groupId>
- <artifactId>nsh-api</artifactId>
+ <groupId>io.fd.honeycomb.vppnsh</groupId>
+ <artifactId>vppnsh-api</artifactId>
<version>1.16.12-SNAPSHOT</version>
<packaging>bundle</packaging>
@@ -50,7 +50,7 @@
<artifactId>yang-ext</artifactId>
</dependency>
<dependency>
- <groupId>${project.groupId}</groupId>
+ <groupId>io.fd.honeycomb.v3po</groupId>
<artifactId>v3po-api</artifactId>
<version>${project.version}</version>
</dependency>
diff --git a/nsh/api/src/main/yang/vpp-nsh.yang b/nsh/api/src/main/yang/vpp-nsh.yang
index 50dfe8e68..47565ce49 100644
--- a/nsh/api/src/main/yang/vpp-nsh.yang
+++ b/nsh/api/src/main/yang/vpp-nsh.yang
@@ -66,12 +66,12 @@ module vpp-nsh {
description "encap type";
}
- identity vxlan-gpe-encap-type {
+ identity vxlan-gpe {
base "encap-type";
description "vxlan-gpe encap type";
}
- identity vxlan-encap-type {
+ identity vxlan {
base "encap-type";
description "vxlan encap type";
}
@@ -121,7 +121,9 @@ module vpp-nsh {
}
grouping nsh-md-type2-attributes {
-
+ leaf type {
+ type uint32;
+ }
}
grouping nsh-entry-base-attributes {
@@ -181,9 +183,13 @@ module vpp-nsh {
leaf encap-type {
type nsh-encap-type;
}
+ leaf encap-if-name {
+ type string;
+ description "Interface Name";
+ }
}
- container nsh {
+ container vpp-nsh {
description
"NSH config data";
@@ -210,31 +216,19 @@ module vpp-nsh {
}
}
- augment /nsh/nsh-entries/nsh-entry {
- ext:augment-identifier nsh-entry-md-type-augment;
+ augment /vpp-nsh/nsh-entries/nsh-entry {
+ ext:augment-identifier nsh-md-type-1-augment;
when "/md-type = 'vpp-nsh:md-type1' ";
uses nsh-md-type1-attributes;
}
- augment /nsh/nsh-entries/nsh-entry {
- ext:augment-identifier nsh-entry-md-type-augment;
+ augment /vpp-nsh/nsh-entries/nsh-entry {
+ ext:augment-identifier nsh-md-type-2-augment;
when "/md-type = 'vpp-nsh:md-type2' ";
uses nsh-md-type2-attributes;
}
- augment /nsh/nsh-maps/nsh-map {
- ext:augment-identifier nsh-vxlan-gpe-encap-augment;
- when "/encap-type = 'vpp-nsh:vxlan-gpe-encap-type' ";
- uses v3po:vxlan-gpe-base-attributes;
- }
-
- augment /nsh/nsh-maps/nsh-map {
- ext:augment-identifier vxlan-encap-augment;
- when "/encap-type = 'vpp-nsh:vxlan-encap-type' ";
- uses v3po:vxlan-base-attributes;
- }
-
- container nsh-state {
+ container vpp-nsh-state {
config false;
description
@@ -262,4 +256,16 @@ module vpp-nsh {
}
}
}
+
+ augment /vpp-nsh-state/nsh-entries/nsh-entry {
+ ext:augment-identifier nsh-md-type-1-state-augment;
+ when "/md-type = 'vpp-nsh:md-type1' ";
+ uses nsh-md-type1-attributes;
+ }
+
+ augment /vpp-nsh-state/nsh-entries/nsh-entry {
+ ext:augment-identifier nsh-md-type-2-state-augment;
+ when "/md-type = 'vpp-nsh:md-type2' ";
+ uses nsh-md-type2-attributes;
+ }
} \ No newline at end of file