Hi
I want to add the "out_port" as a action by using the REST API. I have
presented the code as follows,
@rest_command
def set_port(self, rest, vlan_id, waiters):
if self.version == ofproto_v1_0.OFP_VERSION:
raise ValueError('set_port operation is not supported')
msgs = []
msg = self._set_port(rest, waiters)
msgs.append(msg)
return REST_COMMAND_RESULT, msgs
def _set_port(self, rest, waiters):
try:
self.ofctl.mod_port_behavior(self.dp, port_config)
except:
raise ValueError('Invalid port parameter.')
msg = {'result': 'success',
'details': 'OUTPORT added. : OUTPORT ID=%s' %
rest[REST_OUTPORT_ID]}
return msg
The problem is how to declare/assign the out_port no. in port_config of the
mod_port_behavior ?
Thanks. Eagerly waiting for any reply :)
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel