Hi,

On 2015年10月13日 00:40, Hosein Alm wrote:
> Hi,
> I'm writing a QoS application which requires port_name for queue setting 
> based on this <https://osrg.github.io/ryu-book/en/html/rest_qos.html>.
> How could one have a port_name such as "s1_eth1" in a ryu application?
> I should mention that I do have switch_dpid and port numbers in the topology.

You can get port_name in RyuApp as follow.

e.g.) self.logger.info('port.name=%s', datapath.ports[<PORT_NO>].name)  # --> 
port.name=s1-eth1

For more easier way, how about using ofctl_rest.py?
  http://ryu.readthedocs.org/en/latest/app/ofctl_rest.html#get-ports-description

Thanks,
Iwase

> 
> Thanks.
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to