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";}
7 import openflow-protocol { prefix ofproto; revision-date "2013-07-31"; }
9 revision "2013-09-25" {
10 description "Initial revision of Port Inventory model";
42 typedef port-features {
63 typedef port-number-uni {
64 description "Union port number: 4B number / string (reserved port name)";
71 grouping common-port {
77 leaf hardware-address {
78 type yang:mac-address;
79 description "MAC Address of the port";
85 description "Bit map of OFPPC-* flags";
88 leaf advertised-features {
90 description "Features being advertised by the port";
94 grouping flow-port-status {
99 uses flow-capable-port;
105 uses queue-types:queue-packet;
109 grouping flow-capable-port {
115 description "Human readable name of the port";
120 description "Description of state of port";
123 leaf current-feature {
125 description "Bit map of OFPPF-* flags";
130 description "Features supported by the port";
135 description "Features advertised by peer";
141 description "Current port bit rate in kbps";
147 description "Max port bit rate in kbps";
156 key "port-mod-order";
157 leaf port-mod-order {
165 description "Bitmap of OFPPC-* flags to be changed";
168 leaf container-name {
183 container port-message {
185 uses ofproto:ofHeader;