X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=vpnservice.git;a=blobdiff_plain;f=itm%2Fitm-api%2Fsrc%2Fmain%2Fyang%2Fitm-state.yang;fp=itm%2Fitm-api%2Fsrc%2Fmain%2Fyang%2Fitm-state.yang;h=ea54594c351f00b4658e850967002d6cd7b9f4f2;hp=a1a1ce29974359397f5bf2f3723a344e2f507df8;hb=3e477025479db59022496cabca5e85c79e70fc5a;hpb=6a4dab7d5be4a06ebef6f89b4e05e1604e0eac4c diff --git a/itm/itm-api/src/main/yang/itm-state.yang b/itm/itm-api/src/main/yang/itm-state.yang index a1a1ce29..ea54594c 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 tunnel { key "source-DPN destination-DPN"; @@ -87,36 +93,32 @@ 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 { - 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{