This commit is contained in:
Chris Archibald 2019-08-06 14:53:29 -07:00 committed by ansibot
parent d651bda123
commit 5673482460

View file

@ -267,8 +267,11 @@ class NetAppOntapInterface(object):
data_protocols_obj = netapp_utils.zapi.NaElement('data-protocols') data_protocols_obj = netapp_utils.zapi.NaElement('data-protocols')
for protocol in self.parameters.get('protocols'): for protocol in self.parameters.get('protocols'):
if protocol.lower() in ['fc-nvme', 'fcp']: if protocol.lower() in ['fc-nvme', 'fcp']:
if 'address' in required_keys:
required_keys.remove('address') required_keys.remove('address')
if 'home_port' in required_keys:
required_keys.remove('home_port') required_keys.remove('home_port')
if 'netmask' in required_keys:
required_keys.remove('netmask') required_keys.remove('netmask')
not_required_params = set(['address', 'netmask', 'firewall_policy']) not_required_params = set(['address', 'netmask', 'firewall_policy'])
if not not_required_params.isdisjoint(set(self.parameters.keys())): if not not_required_params.isdisjoint(set(self.parameters.keys())):