From 55e274d6df5b50140a738c258eb9f9aae81931ca Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Fri, 22 Jul 2016 19:20:18 +0800 Subject: HONEYCOMB-83: Add Gre Feature within HC PatchSet 7: refactor code PatchSet 6: Refactor based on new code organization PatchSet 5: consolidate review comments PatchSet 4: refactor to support reader registry PatchSet 3: rebuild PatchSet 2: update outer-fib-id in v3po.yang. PatchSet 1: Add GRE feature and support IPv6. Change-Id: I1fc064b618f161eaef06395380949277e2f9f060 Signed-off-by: Hongjun Ni --- v3po/api/src/main/yang/v3po.yang | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'v3po/api/src/main/yang/v3po.yang') diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang index 5d582181f..409da3041 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -49,6 +49,10 @@ module v3po { base if:interface-type; } + identity gre-tunnel { + base if:interface-type; + } + identity vhost-user { base if:interface-type; } @@ -291,6 +295,20 @@ module v3po { } } + grouping gre-base-attributes { + leaf src { + /*mandatory true;*/ + type inet:ip-address; + } + leaf dst { + /*mandatory true;*/ + type inet:ip-address; + } + leaf outer-fib-id { + type uint32; + } + } + grouping vxlan-gpe-base-attributes { leaf local { /*mandatory true;*/ @@ -423,6 +441,11 @@ module v3po { uses vxlan-base-attributes; } + container gre { + when "../if:type = 'v3po:gre-tunnel'"; + uses gre-base-attributes; + } + container l2 { must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " + "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))"; @@ -496,6 +519,11 @@ module v3po { uses vxlan-gpe-base-attributes; } + container gre { + when "../if:type = 'gre-tunnel'"; + uses gre-base-attributes; + } + container l2 { must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " + "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))"; -- cgit 1.2.3-korg