1 module opendaylight-port-types {
2 namespace "urn:opendaylight:flow:types:port";
5 import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
6 import opendaylight-queue-types {prefix queue-types; revision-date "2013-09-25";}
8 revision "2013-09-25" {
9 description "Initial revision of Port Inventory model";
41 typedef port-features {
62 typedef port-number-uni {
63 description "Union port number: 4B number / string (reserved port name)";
70 grouping common-port {
76 leaf hardware-address {
77 type yang:mac-address;
78 description "MAC Address of the port";
84 description "Bit map of OFPPC-* flags";
87 leaf advertised-features {
89 description "Features being advertised by the port";
93 grouping flow-port-status {
98 uses flow-capable-port;
104 uses queue-types:queue-packet;
108 grouping flow-capable-port {
114 description "Human readable name of the port";
119 description "Description of state of port";
122 leaf current-feature {
124 description "Bit map of OFPPF-* flags";
129 description "Features supported by the port";
134 description "Features advertised by peer";
140 description "Current port bit rate in kbps";
146 description "Max port bit rate in kbps";
155 key "port-mod-order";
156 leaf port-mod-order {
164 description "Bitmap of OFPPC-* flags to be changed";
167 leaf container-name {