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"; }
8 import opendaylight-multipart-types { prefix multipart; revision-date "2017-01-12"; }
10 revision "2013-09-25" {
11 description "Initial revision of Port Inventory model";
43 typedef port-features {
64 typedef port-number-uni {
65 description "Union port number: 4B number / string (reserved port name)";
72 grouping common-port {
78 leaf hardware-address {
79 type yang:mac-address;
80 description "MAC Address of the port";
86 description "Bit map of OFPPC-* flags";
89 leaf advertised-features {
91 description "Features being advertised by the port";
95 grouping flow-port-status {
100 uses flow-capable-port;
106 uses queue-types:queue-packet;
110 grouping flow-capable-port {
116 description "Human readable name of the port";
121 description "Description of state of port";
124 leaf current-feature {
126 description "Bit map of OFPPF-* flags";
131 description "Features supported by the port";
136 description "Features advertised by peer";
142 description "Current port bit rate in kbps";
148 description "Max port bit rate in kbps";
157 key "port-mod-order";
158 leaf port-mod-order {
166 description "Bitmap of OFPPC-* flags to be changed";
169 leaf container-name {
184 container port-message {
186 uses ofproto:ofHeader;
189 augment "/multipart:multipart-reply/multipart:multipart-reply-body" {
190 case multipart-reply-port-desc {
192 uses flow-capable-port;