This patch covers yang changes for OF Tunnels as captured in of-tunnels
spec document.
References
----------
https://git.opendaylight.org/gerrit/#/c/48156/
Change-Id: I619bd7daa77f384d172bd6e54cbcc2754200a99f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
description "Tunnel type for vxlan tunnels";
base tunnel-type-base;
}
description "Tunnel type for vxlan tunnels";
base tunnel-type-base;
}
identity tunnel-type-vxlan-gpe {
description "Tunnel type for vxlan-gpe";
base tunnel-type-base;
identity tunnel-type-vxlan-gpe {
description "Tunnel type for vxlan-gpe";
base tunnel-type-base;
base tunnel-monitoring-type-base;
}
base tunnel-monitoring-type-base;
}
+ grouping tunnel-optional-params {
+ leaf tunnel-source-ip-flow {
+ description "Use local_ip=flow for this tunnel";
+ type boolean;
+ default false;
+ }
+ leaf tunnel-remote-ip-flow {
+ description "Use remote_ip=flow for this tunnel";
+ type boolean;
+ default false;
+ }
+
+ list tunnel-options {
+ key "tunnel-option";
+ leaf tunnel-option {
+ description "Tunnel Option name";
+ type string;
+ }
+ leaf value {
+ description "Option value";
+ type string;
+ }
+ }
+ }
+
grouping monitor-params {
leaf monitor-enabled {
type boolean;
grouping monitor-params {
leaf monitor-enabled {
type boolean;
description
"represents whether this is an internal or external tunnel.";
}
description
"represents whether this is an internal or external tunnel.";
}
leaf tunnel-interface-type {
type identityref {
base tunnel-type-base;
leaf tunnel-interface-type {
type identityref {
base tunnel-type-base;
description "gateway IP address";
}
description "gateway IP address";
}
+ uses tunnel-optional-params;
leaf ip-address {
type inet:ip-address;
}
leaf ip-address {
type inet:ip-address;
}
+ leaf option-of-tunnel {
+ description "Use flow based tunnels for remote-ip";
+ type boolean;
+ default false;
+ }
}
list device-vteps {
key "node-id ip-address";
}
list device-vteps {
key "node-id ip-address";