Hi,

On 2015年07月06日 21:38, Vinllen Chen wrote:
> Hi, Dear all:
> 
>     I want to kown how to get the mac address of switch which is connect to 
> the ryu. 
> As i kown, we can use the dpset.get_ports(dpid) to get the port status of 
> switch, but how to get the mac address ? What i said is not mac learning.

The return value of dpset.get_ports(dpid) is the list of OFPPort instances.
 
<https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_3_parser.py#L2249-L2274>

If you need MAC address, please refer to 'hw_addr' in OFPPort instances.

Thanks,
Iwase

> 
>     Greate appreciate for anyone's help
> -- 
> Best Regards,
> Vinllen
> 
> 
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to