Drop deprecated "macs" field in nodes_json

In change I74d4178dbb0cfe8c934ce15e3e7c9bb1c469de10
the "macs" field in nodes_json was deprecated and
replaced by the "ports" field.

It has been several cycles with a deprecation warning
in the logs. Remove convert_nodes_json_mac_to_ports
use which keept backward compatibility.

Change-Id: Ib520d5e8366159917076c35cf80efb4b5fcffca6
This commit is contained in:
Harald Jensås 2021-06-18 15:46:01 +02:00
parent 8df2e97d22
commit 9facf538a9
1 changed files with 0 additions and 2 deletions

View File

@ -41,7 +41,6 @@ def validate_nodes(clients, nodes_json):
:returns: Boolean
"""
nodes_json = node_utils.convert_nodes_json_mac_to_ports(nodes_json)
validated_nodes = node_utils.validate_nodes(nodes_json)
if not validated_nodes:
return True
@ -73,7 +72,6 @@ def register_or_update(clients, nodes_json, kernel_name=None,
:returns: List
"""
nodes_json = node_utils.convert_nodes_json_mac_to_ports(nodes_json)
for node in nodes_json:
caps = node.get('capabilities', {})
caps = node_utils.capabilities_to_dict(caps)