Merge "[ovn]: gracefully handle logical switch ports with tag set to None" into stable/ussuri

This commit is contained in:
Zuul 2020-09-02 21:43:27 +00:00 committed by Gerrit Code Review
commit d2d90d3e08
1 changed files with 1 additions and 0 deletions

View File

@ -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