Fix port update
[openflowplugin.git] / model / model-flow-base / src / main / yang / opendaylight-port-types.yang
index 9c6d3a34bdbca56192336e1bd84ab79fe082d4d7..fa6e1fcdfd7acded5d2ab949f4d27a123ca5c1a9 100644 (file)
@@ -92,6 +92,15 @@ module opendaylight-port-types {
         }
     }
 
+    grouping  common-port-with-mask {
+        uses common-port;
+
+        leaf mask {
+            type port-config;
+            description "Bitmap of OFPPC-* flags to be changed";
+        }
+    }
+
     grouping flow-port-status {
         leaf reason {
             type port-reason;
@@ -159,12 +168,7 @@ module opendaylight-port-types {
                     type uint32;
                 }
 
-                uses common-port;
-
-                leaf mask {
-                    type port-config;
-                    description "Bitmap of OFPPC-* flags to be changed";
-                }
+                uses common-port-with-mask;
 
                 leaf container-name {
                     type string;
@@ -182,7 +186,7 @@ module opendaylight-port-types {
     }
 
     container port-message {
-        uses common-port;
+        uses common-port-with-mask;
         uses ofproto:ofHeader;
     }