From ac3e21bb6668fca74568f9548c6dc847f62dab3d Mon Sep 17 00:00:00 2001 From: Stenio Araujo Date: Tue, 4 Apr 2017 11:46:16 -0300 Subject: [PATCH] Reenable the dynamic allocation validation methods This patch reenable the methods used when dynamic allocation is enabled. Change-Id: I47606a2fd0c27b82217ec5491a997e226a8469f6 --- oneview_client/client.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/oneview_client/client.py b/oneview_client/client.py index 34b2cdf..f0ce458 100644 --- a/oneview_client/client.py +++ b/oneview_client/client.py @@ -622,6 +622,14 @@ class Client(BaseClient): oneview_info, valid_ports) self._validate_connection_mac(oneview_info, valid_ports) + def is_node_port_mac_compatible_with_server_hardware( + self, node_info, ports + ): + # NOTE(mrtenio): While the connection validation patch + # is not accepted, we need to refer to the new validation. + self._is_node_port_mac_compatible_with_server_hardware( + self, node_info, ports) + @auditing.audit def _is_node_port_mac_compatible_with_server_hardware( self, node_info, ports @@ -643,6 +651,9 @@ class Client(BaseClient): ) raise exceptions.OneViewInconsistentResource(message) + def validate_server_profile_template_mac_type(self, oneview_info): + self._validate_server_profile_template_mac_type(self, oneview_info) + @auditing.audit def _validate_server_profile_template_mac_type(self, oneview_info): server_profile_template = self.get_server_profile_template(