From 73da0ef102d07dc347ff72140ecd0e50523bcf26 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Thu, 20 Oct 2016 23:56:38 +0800 Subject: 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 --- nsh/api/src/main/yang/vpp-nsh.yang | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'nsh/api/src/main/yang') 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 @@ -59,6 +59,34 @@ module vpp-nsh { description "Identifies a specific next protocol for 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. */ @@ -180,6 +208,9 @@ module vpp-nsh { range "1..255"; } } + leaf nsh-action { + type nsh-action-type; + } leaf encap-type { type nsh-encap-type; } -- cgit 1.2.3-korg