diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2016-12-13 01:23:43 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2016-12-13 19:00:53 +0800 |
commit | a0053ac0bfadabafca3d80e3b3500f82913f3235 (patch) | |
tree | 64e52c8912fde9004e6ebb66d020f95303199e56 /v3po/api/src/main | |
parent | 10ae85f84a55c5c1bf35d9d943c34df82ef18cae (diff) |
Augment vxlan to support decap-next: YANG model
Change-Id: I97571254c7da7d010d542515864d8f39ea1499d1
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'v3po/api/src/main')
-rw-r--r-- | v3po/api/src/main/yang/v3po.yang | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang index fff8293d5..c1c0ce23d 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -328,6 +328,28 @@ module v3po { } } + /* + * Defines the supported decap node for vxlan. + */ + identity decap-node { + description + "Define the supported decap node"; + } + identity l2-input { + base decap-node; + description + "The next decap node is l2-input"; + } + identity nsh-proxy { + base decap-node; + description + "The next decap node is nsh-proxy"; + } + typedef vxlan-decap-node { + type identityref { + base "decap-node"; + } + } grouping vxlan-base-attributes { // FIXME: this should be in an vxlan-specific extension leaf src { @@ -345,6 +367,10 @@ module v3po { leaf encap-vrf-id { type uint32; } + leaf decap-next { + type vxlan-decap-node; + default "l2-input"; + } } grouping gre-base-attributes { |