namespace "urn:opendaylight:flow:types:port";
prefix port-types;
- import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
+ import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
import opendaylight-queue-types {prefix queue-types; revision-date "2013-09-25";}
revision "2013-09-25" {
}
}
+ typedef port-number-uni {
+ description "Union port number: 4B number / string (reserved port name)";
+ type union {
+ type uint32;
+ type string;
+ }
+ }
+
grouping common-port {
leaf port-number {
- type union {
- type uint32;
- type string;
- }
+ type port-number-uni;
}
leaf hardware-address {