[ovs-discuss] Portname can only 15 characters long

Xiao Liang shaw.leon at gmail.com
Wed May 25 04:17:07 UTC 2016


On Tue, May 24, 2016 at 11:57 PM, Justin Pettit <jpettit at ovn.org> wrote:
>
>> On May 24, 2016, at 2:28 AM, Steffen Fredrik Birkeland <steffefb at stud.ntnu.no> wrote:
>>
>> Hi
>> I am currently working with open vswitch for my master thesis and I have discovered some issues with the port naming in vswitch.
>>
>> If I chose a port name that is more than 15 characters long, the names are beeing cut off
>
> Linux limits the length of its devices names to 15 characters.
>
>> ipsec_gre-rasp1-r1 shows up as ipsec_gre-r2-ra. Furthermore, if you want to delete or modify the port you have to reference it by its full name. If you request the port names in the controller you will only get the cut-off name.
>
> The OVS database that stores configuration doesn't know about host-specific limitations on device name lengths.  If you look in the ovs-vswitchd logs, you will likely see it complaining about the issue.
>
> --Justin
>
>

Openflow also limits port name length to 15. I'm currently working on
a patch so that a different name (still no more than 15 characters)
could be configured for the controller to distinguish ports.

Thanks,
Xiao



More information about the discuss mailing list