Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix for port-state Bug 262.
[controller.git]
/
opendaylight
/
md-sal
/
model
/
model-flow-base
/
src
/
main
/
yang
/
port-types.yang
diff --git
a/opendaylight/md-sal/model/model-flow-base/src/main/yang/port-types.yang
b/opendaylight/md-sal/model/model-flow-base/src/main/yang/port-types.yang
index bc05894da82637cfae12f61257fc79bdd2609500..2554fffadb7a047d0e8bb525688a20ba1423ba13 100644
(file)
--- a/
opendaylight/md-sal/model/model-flow-base/src/main/yang/port-types.yang
+++ b/
opendaylight/md-sal/model/model-flow-base/src/main/yang/port-types.yang
@@
-27,11
+27,15
@@
module opendaylight-port-types {
}
}
}
}
- typedef port-state {
- type enumeration {
- enum link-down;
- enum blocked;
- enum live;
+ grouping port-state {
+ leaf link-down {
+ type boolean;
+ }
+ leaf blocked {
+ type boolean;
+ }
+ leaf live {
+ type boolean;
}
}
}
}
@@
-103,9
+107,9
@@
module opendaylight-port-types {
description "Human readable name of the port";
}
description "Human readable name of the port";
}
-
leaf
state {
-
type
port-state;
- description "
Bit map of OFPPS-* flags
";
+
container
state {
+
uses
port-state;
+ description "
Description of state of port
";
}
leaf current-feature {
}
leaf current-feature {