External api proposal
[openflowplugin.git] / model / model-flow-base / src / main / yang / opendaylight-port-types.yang
index 9e880987524c3cee54d7f0486f7dce5df272ae17..80fe9be15ed9aac06255027c62afbd35e150ac62 100644 (file)
@@ -59,13 +59,18 @@ module opendaylight-port-types {
         }
     }
     
+    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 {