summaryrefslogtreecommitdiffstats
path: root/nsh/api/src/main/yang
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-10-20 23:56:38 +0800
committerMaros Marsalek <mmarsale@cisco.com>2016-10-24 09:01:26 +0000
commit73da0ef102d07dc347ff72140ecd0e50523bcf26 (patch)
treefdb85c7768e98352069eb537b7d753466d72500f /nsh/api/src/main/yang
parentb17433b8e54489139c4cbcb91b82f375adfdf2de (diff)
Augment nsh map API with nsh_action
Depends on VPP's patch: https://gerrit.fd.io/r/#/c/3462/ Change-Id: I874cb7c5b39b9ece75d7d9af980e8d25df6f5aad Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh/api/src/main/yang')
-rw-r--r--nsh/api/src/main/yang/vpp-nsh.yang31
1 files changed, 31 insertions, 0 deletions
diff --git a/nsh/api/src/main/yang/vpp-nsh.yang b/nsh/api/src/main/yang/vpp-nsh.yang
index 47565ce49..a3313bad4 100644
--- a/nsh/api/src/main/yang/vpp-nsh.yang
+++ b/nsh/api/src/main/yang/vpp-nsh.yang
@@ -60,6 +60,34 @@ module vpp-nsh {
}
/*
+ * Defines the supported nsh header action.
+ */
+ identity action-type {
+ description "nsh header action type";
+ }
+
+ identity swap {
+ base "action-type";
+ description "swap action type";
+ }
+
+ identity push {
+ base "action-type";
+ description "push action type";
+ }
+
+ identity pop {
+ base "action-type";
+ description "pop action type";
+ }
+
+ typedef nsh-action-type {
+ type identityref {
+ base "action-type";
+ }
+ }
+
+ /*
* Defines the supported encap type.
*/
identity encap-type {
@@ -180,6 +208,9 @@ module vpp-nsh {
range "1..255";
}
}
+ leaf nsh-action {
+ type nsh-action-type;
+ }
leaf encap-type {
type nsh-encap-type;
}