---
 ryu/lib/stplib.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ryu/lib/stplib.py b/ryu/lib/stplib.py
index 8855cab..9fbdece 100644
--- a/ryu/lib/stplib.py
+++ b/ryu/lib/stplib.py
@@ -1151,7 +1151,10 @@ class OfCtl_v1_2later(OfCtl_v1_0):
         config = {ofproto_v1_2: PORT_CONFIG_V1_2,
                   ofproto_v1_3: PORT_CONFIG_V1_3}
 
-        mask = 0b1111111
+        # Only turn on the relevant bits defined on OpenFlow 1.2+, otherwise
+        # some switch that follows the specification strictly will report
+        # OFPPMFC_BAD_CONFIG error.
+        mask = 0b1100101
         msg = parser.OFPPortMod(self.dp, port.port_no, port.hw_addr,
                                 config[ofp][state], mask, port.advertised)
         self.dp.send_msg(msg)
-- 
1.8.5.5


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to