module itm-state {
- namespace "urn:opendaylight:params:xml:ns:yang:itm:op";
+ namespace "urn:opendaylight:vpnservice:itm:op";
prefix itm-state;
prefix inet;
revision-date "2010-09-24";
}
+ import odl-interface {
+ prefix odlif; revision-date "2015-03-31";
+ }
+
description "This YANG module defines operation part of the model.";
/* Operational state */
- container tunnels {
+ container dpn-endpoints {
list DPN-TEPs-info {
type string;
}
leaf tunnel-type {
- type string;
+ type identityref {
+ base odlif:tunnel-type-base;
+ }
}
}
}
- container tunnels_state {
- list state-tunnel-list {
+ container tunnel-list {
+ list tunnel {
key "source-DPN destination-DPN";
/* logical-group interface id */
- leaf logical-tunnel-group-name {
+ leaf tunnel-interface-name {
type string;
- config false;
}
+ }
+ }
+
+ container external-tunnel-list {
+ list external-tunnel {
- leaf logical-tunnel-state {
- type boolean;
- config false;
+ key "source-DPN destination-IP";
+
+ leaf source-DPN {
+ type uint64;
}
- }
- }
+ leaf destination-IP {
+ type inet:ip-address;
+ }
- rpc get-tunnel-id {
+ /* logical-group interface id */
- input {
- leaf source-dpn {
- type uint64;
- }
- leaf destination-dpn {
- type uint64;
- }
- }
+ leaf tunnel-interface-name {
+ type string;
+ }
- output {
- leaf logical-group-name {
- type string;
- }
}
-
}
notification itm-tunnel-build-complete{