[ovs-dev] ovn-nbctl:What are router commands like?

Russell Bryant russell at ovn.org
Mon Dec 7 18:13:27 UTC 2015


On 12/04/2015 12:10 AM, Wei Li wrote:
> I have created a pull request on git for adding db commands help

Saw it, and replied.  :-)

https://github.com/openvswitch/ovs/pull/93

> and I want to change the output of "/ovn-nbctl show/"
> 
> 1: "ovn-nbctl show" will print all switch and all router like this:
>     lswitch 363cf780-c233-4cbd-a9b3-57bfad8dc907
> (neutron-9822d5dd-017c-4c82-92d8-8b71f7d55255)
>         lport 9e8378b9-80b2-4d6a-864a-6d378bcc4a66
>             addresses: fa:16:3e:4c:3b:fc 1.1.1.1
>         lport 9f36e7fc-372f-45c4-bca5-aac172bd4ac6
>             addresses: fa:16:3e:74:6a:65 1.1.1.2
>     lswitch 654c9341-e29b-4575-af9a-8f3a698ba8b4
> (neutron-8b3dbb6d-2dab-41c9-9c1f-66e0a489484b)
>         lport f9becbbb-fbdf-49bb-92fc-25fc2aacf019
>             addresses: fa:16:3e:6d:55:00 2.2.2.1
>         lport 2af73da5-c1f1-4d78-9997-3e6be6d8a36a
>             addresses: fa:16:3e:f0:96:0d 2.2.2.2
>     lrouter fb3b447d-b287-46c4-a663-1a5cb95b42f2
> (neutron-17941229-a31e-4033-a845-5fada1922325)
>         lport 9e8378b9-80b2-4d6a-864a-6d378bcc4a66
>             network: 1.1.1.1/24
>             mac: fa:16:3e:4c:3b:fc
>         lport f9becbbb-fbdf-49bb-92fc-25fc2aacf019
>             network: 2.2.2.1/24
>             mac: fa:16:3e:6d:55:00

This seems fine to me.

> 2: delete "/show LSWITCH/"   use "/list TBL [REC]/" for specified one
> 
> is ok?

I'm looking at this again and I think it's worth keeping because the
output is a bit friendlier.

How about supporting both "show LSWITCH" and "show LROUTER".  The
implementation would just have to search both tables for a match on name
or UUID.

-- 
Russell Bryant



More information about the dev mailing list