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 common-port-with-mask {
100 description "Bitmap of OFPPC-* flags to be changed";
104 grouping flow-port-status {
109 uses flow-capable-port;
115 uses queue-types:queue-packet;
119 grouping flow-capable-port {
125 description "Human readable name of the port";
130 description "Description of state of port";
133 leaf current-feature {
135 description "Bit map of OFPPF-* flags";
140 description "Features supported by the port";
145 description "Features advertised by peer";
151 description "Current port bit rate in kbps";
157 description "Max port bit rate in kbps";
166 key "port-mod-order";
167 leaf port-mod-order {
171 uses common-port-with-mask;
173 leaf container-name {
188 container port-message {
189 uses common-port-with-mask;
190 uses ofproto:ofHeader;
193 augment "/multipart:multipart-reply/multipart:multipart-reply-body" {
194 case multipart-reply-port-desc {
196 uses flow-capable-port;
202 augment "/multipart:multipart-request/multipart:multipart-request-body" {
203 case multipart-request-port-desc {