diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2017-03-16 00:17:26 +0800 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-03-27 11:37:01 +0000 |
commit | 169ce221c4e8e2eeb24fc1f509cc440c694fa5a4 (patch) | |
tree | 9499cc2b8b883798b31005586731892d289b74e8 /nsh/api/src | |
parent | 148e3067aa22b312c0bec24b1c8c89994b311c77 (diff) |
Add Yang model for NSH MD2 support
Change-Id: Idec4f8dae90ef90de538b977248bee7a078ae374
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh/api/src')
-rw-r--r-- | nsh/api/src/main/yang/vpp-nsh.yang | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/nsh/api/src/main/yang/vpp-nsh.yang b/nsh/api/src/main/yang/vpp-nsh.yang index 14ea06d6f..a379313cf 100644 --- a/nsh/api/src/main/yang/vpp-nsh.yang +++ b/nsh/api/src/main/yang/vpp-nsh.yang @@ -3,6 +3,11 @@ module vpp-nsh { namespace "urn:opendaylight:params:xml:ns:yang:vpp:nsh"; prefix "vpp-nsh"; + revision "2017-03-15" { + description + "This revision adds support for NSH-MD2 features"; + } + revision "2016-12-14" { description "This revision adds support for NSH-Proxy and NSH-Classifier features"; @@ -165,8 +170,28 @@ module vpp-nsh { } grouping nsh-md-type2-attributes { - leaf type { - type uint32; + list md2-data { + key "md2_class type"; + + leaf md2_class { + type uint32 { + range "0..65535"; + } + } + leaf type + { + type uint8; + } + leaf len + { + type uint8; + } + leaf metadata + { + type string { + length 1..128; + } + } } } |