[ovs-dev] dhcp4_options field in logical_switch_port table question

Numan Siddique nusiddiq at redhat.com
Mon Mar 18 10:30:45 UTC 2019


On Mon, Mar 18, 2019 at 1:45 PM Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:

> Hi. I'm try to modify/write/improve golang ovn binding. And i'm stuck
> at dhcpv4_options in logical_switch_port.
> As i see its is weak reference, i think that it is string, but as i
> see in returned results via libovsdb it is OvsSet type (array of
> strings). Does it right?
>
>
I think it is array of string.

When I run the below command,
ovn-nbctl set logical_switch_port <LSP_UUID/LSP_NAME>
dhcpv4_options="DHCP_OPTIONS_ROW_UUID".


the jsonrpc transaction message is
- 2019-03-18T10:28:19.568Z|00168|jsonrpc|DBG|unix#8: received request,
method="transact",
params=["OVN_Northbound",{"where":[["_uuid","==",["uuid","073f65c4-7736-4268-8e39-c3c4b992c7f7"]]],"table":"Logical_Switch_Port","op":"update","row":{"dhcpv4_options":["uuid","073f65c4-7736-4268-8e39-c3c4b992c7f7"]}},{"comment":"ovs-nbctl:
ovn-nbctl set logical_switch_port sw0-port1
dhcpv4_options=073f65c4-7736-4268-8e39-c3c4b992c7f7","op":"comment"}], id=4

Thanks
Numan

-- 
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list