Reenable the dynamic allocation validation methods

This patch reenable the methods used when dynamic allocation
is enabled.

Change-Id: I47606a2fd0c27b82217ec5491a997e226a8469f6
This commit is contained in:
Stenio Araujo 2017-04-04 11:46:16 -03:00
parent 2afbca7a91
commit ac3e21bb66
1 changed files with 11 additions and 0 deletions

View File

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