chore(sdn-controller/ovsdb-client): dont use set when not necessary (#4806)

This commit is contained in:
BenjiReis 2020-02-18 12:09:19 +01:00 committed by GitHub
parent 95a5c7a001
commit ba140c60e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ export class OvsdbClient {
table: 'Port',
row: {
name: portName,
interfaces: ['set', [['named-uuid', 'new_iface']]],
interfaces: ['named-uuid', 'new_iface'],
other_config: toMap({
'xo:sdn-controller:private-network-uuid': privateNetworkUuid,
}),
@ -143,7 +143,7 @@ export class OvsdbClient {
op: 'mutate',
table: 'Bridge',
where: [['_uuid', '==', ['uuid', bridge.uuid]]],
mutations: [['ports', 'insert', ['set', [['named-uuid', 'new_port']]]]],
mutations: [['ports', 'insert', ['named-uuid', 'new_port']]],
}
const params = [
'Open_vSwitch',