[ovs-discuss] OVS port name differ from interface name

Ben Pfaff blp at ovn.org
Mon Jan 15 19:19:56 UTC 2018


On Mon, Jan 15, 2018 at 09:50:52AM -0800, Fred Licht wrote:
>    Is it possible to have an OVS port ‘name’ differ from the interface name?
> 
>     Bridge ovs-ha-sw
>         Port ovs-ha-sw
>             Interface ovs-ha-sw
>                 type: internal
>         Port "bond1"
>             Interface "bond1"
> 
> To have the effect of:
> 
>     Bridge ovs-ha-sw
>         Port ovs-ha-sw
>             Interface ovs-ha-sw
>                 type: internal
>         Port “east-west"
>             Interface "bond1"

You can do it, but since port names are immutable it has to happen at
the time you add the port.  For example:

blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl add-br br0
blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl add-port br0 p0 -- set port p0 name=asdf
blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl show
8b75cccb-f1eb-4e75-ac67-57ebac4e8432
    Bridge "br0"
        Port "br0"
            Interface "br0"
                type: internal
        Port asdf
            Interface "p0"
blp at sigabrt:~/nicira/ovs/tutorial(0)$ 


More information about the discuss mailing list