Merge pull request #20 from nttmcl/apgw-fix-modify-meter-regression

Apgw fix modify meter regression
This commit is contained in:
Karthik Krishnan Ramasubramanian 2014-06-15 04:20:17 -07:00
commit 8e25cdb4f8

View File

@ -541,9 +541,9 @@ class RpcOFPManager(app_manager.RyuApp):
elif (ofmsg.command is dp.ofproto.OFPMC_DELETE and
ofmsg.meter_id in self.monitored_meters):
del self.monitored_meters[ofmsg.meter_id]
elif (ofmsg.command is dp.ofproto.OFPMC_MODIFY and
contexts is not None):
raise RPCError('METER_MOD with contexts is not supported')
elif ofmsg.command is dp.ofproto.OFPMC_MODIFY:
if contexts is not None:
raise RPCError('METER_MOD with contexts is not supported')
else:
raise RPCError('unknown meter_mod command')
else: