While implementing this use case I need some help using the select operation of ovsdb library. I am trying to read the Open_vSwitch table to get the data in external-ids. I am doing the following:
OpenVSwitch ovs = TyperUtils.getTypedRowWrapper(dbSchema, OpenVSwitch.class);
transaction.add(op.select(ovs.getSchema()));
ListenableFuture<List<OperationResult>> results = transaction.execute();
List<OperationResult> resultList = results.get();
I am getting resultList as:
[OperationResult [count=0, uuid=null, rows=[Row [columns={}]], error=null, details=null]]
Query sent to Ovs db is:
ovsdb-client transact '["Open_vSwitch",{"op":"select", "table":"Open_vSwitch",
"columns":[],"where": []}]'
However, I want to send:
ovsdb-client transact '["Open_vSwitch",{"op":"select", "table":"Open_vSwitch",
"columns":["external_ids"],"where": []}]'
It would be very helpful if someone could provide pointers on how to set column in select operation.
Regards
Prateek