Merge "Support binding floating ip to smart-nic port"

This commit is contained in:
Zuul 2022-03-09 04:22:41 +00:00 committed by Gerrit Code Review
commit 823be18b60
1 changed files with 3 additions and 2 deletions

View File

@ -391,6 +391,7 @@ def can_port_be_bound_to_virtual_bridge(port):
"""Returns if port can be bound to a virtual bridge (e.g.: LB, OVS)
:param port: (dict) A port dictionary.
:returns: True if the port VNIC type is 'normal'; False in any other case.
:returns: True if the port VNIC type is 'normal' or 'smart-nic'; False in
any other case.
"""
return port[pb.VNIC_TYPE] == pb.VNIC_NORMAL
return port[pb.VNIC_TYPE] in [pb.VNIC_NORMAL, pb.VNIC_SMARTNIC]