chore(sdn-controller/ovsdb-client): dont use set when not necessary (#4806)
This commit is contained in:
parent
95a5c7a001
commit
ba140c60e3
@ -131,7 +131,7 @@ export class OvsdbClient {
|
|||||||
table: 'Port',
|
table: 'Port',
|
||||||
row: {
|
row: {
|
||||||
name: portName,
|
name: portName,
|
||||||
interfaces: ['set', [['named-uuid', 'new_iface']]],
|
interfaces: ['named-uuid', 'new_iface'],
|
||||||
other_config: toMap({
|
other_config: toMap({
|
||||||
'xo:sdn-controller:private-network-uuid': privateNetworkUuid,
|
'xo:sdn-controller:private-network-uuid': privateNetworkUuid,
|
||||||
}),
|
}),
|
||||||
@ -143,7 +143,7 @@ export class OvsdbClient {
|
|||||||
op: 'mutate',
|
op: 'mutate',
|
||||||
table: 'Bridge',
|
table: 'Bridge',
|
||||||
where: [['_uuid', '==', ['uuid', bridge.uuid]]],
|
where: [['_uuid', '==', ['uuid', bridge.uuid]]],
|
||||||
mutations: [['ports', 'insert', ['set', [['named-uuid', 'new_port']]]]],
|
mutations: [['ports', 'insert', ['named-uuid', 'new_port']]],
|
||||||
}
|
}
|
||||||
const params = [
|
const params = [
|
||||||
'Open_vSwitch',
|
'Open_vSwitch',
|
||||||
|
Loading…
Reference in New Issue
Block a user