diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2016-10-20 23:56:38 +0800 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-10-24 09:01:26 +0000 |
commit | 81c7ae0e263515b5bf8acb59b06d61ba446b8f0b (patch) | |
tree | f71426e1108b29a2cf27977f601a7223522e9585 /nsh/api | |
parent | 848fee64e645acdbb84fc5aea1d0d5b05993f6c2 (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')
-rw-r--r-- | nsh/api/src/main/yang/vpp-nsh.yang | 31 |
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; } |