Code Review
/
vpnservice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implemented new RPCs, add/delete int/ext I/f name
[vpnservice.git]
/
itm
/
itm-api
/
src
/
main
/
yang
/
itm-state.yang
diff --git
a/itm/itm-api/src/main/yang/itm-state.yang
b/itm/itm-api/src/main/yang/itm-state.yang
index a1a1ce29974359397f5bf2f3723a344e2f507df8..ca39c03eda5c66365aa14b392680a80a069cee92 100644
(file)
--- 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 {
module itm-state {
- namespace "urn:opendaylight:
params:xml:ns:yang
:itm:op";
+ namespace "urn:opendaylight:
vpnservice
:itm:op";
prefix itm-state;
prefix itm-state;
@@
-16,6
+16,10
@@
module itm-state {
prefix inet;
revision-date "2010-09-24";
}
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.";
description "This YANG module defines operation part of the model.";
@@
-23,7
+27,7
@@
module itm-state {
/* Operational state */
/* Operational state */
- container
tunnel
s {
+ container
dpn-endpoint
s {
list DPN-TEPs-info {
list DPN-TEPs-info {
@@
-64,7
+68,9
@@
module itm-state {
type string;
}
leaf tunnel-type {
type string;
}
leaf tunnel-type {
- type string;
+ type identityref {
+ base odlif:tunnel-type-base;
+ }
}
}
}
}
@@
-72,8
+78,8
@@
module itm-state {
}
}
- container tunnel
s_state
{
- list
state-tunnel-list
{
+ container tunnel
-list
{
+ list
internal-tunnel
{
key "source-DPN destination-DPN";
key "source-DPN destination-DPN";
@@
-87,38
+93,34
@@
module itm-state {
/* logical-group interface id */
/* logical-group interface id */
- leaf
logical-tunnel-group
-name {
+ leaf
tunnel-interface
-name {
type string;
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{
}
notification itm-tunnel-build-complete{
}