diff options
Diffstat (limited to 'nsh/api/src/main')
-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; } |