diff options
author | Tzu-Mainn Chen <tzumainn@redhat.com> | 2021-11-08 20:30:52 +0000 |
---|---|---|
committer | Tzu-Mainn Chen <tzumainn@redhat.com> | 2021-11-08 21:25:40 +0000 |
commit | 16aad76a6f53c80919da8c3b9ed58ef75c047d1d (patch) | |
tree | 1f2cf5bb10539d561394619a76f451584639ab50 /ironic/common/neutron.py | |
parent | b1d08ae80542b6b3aa9fab99cdc64b449d113115 (diff) | |
download | ironic-16aad76a6f53c80919da8c3b9ed58ef75c047d1d.tar.gz |
Create node get_interface method
A node's interface can be temporarily overriden in instance_info.
However, some parts of the Ironic code still used a node's interface
attribute directly. This change adds a node get_interface method
and updates various parts of the Ironic code to use it.
Change-Id: Ifdaa21383f71b501bccb6cf8fe80e5b34661b6ae
Diffstat (limited to 'ironic/common/neutron.py')
-rw-r--r-- | ironic/common/neutron.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/common/neutron.py b/ironic/common/neutron.py index 03e78ef35..3ab23424b 100644 --- a/ironic/common/neutron.py +++ b/ironic/common/neutron.py @@ -712,7 +712,7 @@ def validate_port_info(node, port): # Subnet Manager. if port.extra.get('client-id'): return True - if (node.network_interface == 'neutron' + if (node.get_interface('network') == 'neutron' and not port.local_link_connection): LOG.warning("The local_link_connection is required for " "'neutron' network interface and is not present " |