X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=itm%2Fitm-api%2Fsrc%2Fmain%2Fyang%2Fitm-state.yang;h=ca39c03eda5c66365aa14b392680a80a069cee92;hb=de28c9eeb14ae5e5f65bc4621f3802ee4f831d49;hp=a1a1ce29974359397f5bf2f3723a344e2f507df8;hpb=50bb8cd056ca25114a412398c4df672eac891b28;p=vpnservice.git diff --git a/itm/itm-api/src/main/yang/itm-state.yang b/itm/itm-api/src/main/yang/itm-state.yang index a1a1ce29..ca39c03e 100644 --- a/itm/itm-api/src/main/yang/itm-state.yang +++ b/itm/itm-api/src/main/yang/itm-state.yang @@ -1,6 +1,6 @@ module itm-state { - namespace "urn:opendaylight:params:xml:ns:yang:itm:op"; + namespace "urn:opendaylight:vpnservice:itm:op"; prefix itm-state; @@ -16,6 +16,10 @@ module 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."; @@ -23,7 +27,7 @@ module itm-state { /* Operational state */ - container tunnels { + container dpn-endpoints { list DPN-TEPs-info { @@ -64,7 +68,9 @@ module itm-state { type string; } leaf tunnel-type { - type string; + type identityref { + base odlif:tunnel-type-base; + } } } @@ -72,8 +78,8 @@ module itm-state { } - container tunnels_state { - list state-tunnel-list { + container tunnel-list { + list internal-tunnel { key "source-DPN destination-DPN"; @@ -87,38 +93,34 @@ module itm-state { /* logical-group interface id */ - leaf logical-tunnel-group-name { + leaf tunnel-interface-name { type string; - config false; } + } + } + + container external-tunnel-list { + list external-tunnel { + + key "source-DPN destination-IP"; - leaf logical-tunnel-state { - type boolean; - config false; + 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{ }