Merge "[ovn]: gracefully handle logical switch ports with tag set to None" into stable/ussuri
This commit is contained in:
commit
d2d90d3e08
|
@ -125,6 +125,7 @@ class AddLSwitchPortCommand(command.BaseCommand):
|
|||
|
||||
port = txn.insert(self.api._tables['Logical_Switch_Port'])
|
||||
port.name = self.lport
|
||||
port.tag = self.columns.pop('tag', []) or []
|
||||
dhcpv4_options = self.columns.pop('dhcpv4_options', [])
|
||||
if isinstance(dhcpv4_options, list):
|
||||
port.dhcpv4_options = dhcpv4_options
|
||||
|
|
Loading…
Reference in New Issue