Skip to content

Commit

Permalink
[NPA-83] Fixed DHCP options for IPv4/v6 network container. (#243)
Browse files Browse the repository at this point in the history
* [NPA-83] Fixed dhcp options for IPv4/v6 network container.
  • Loading branch information
JchhatbarInfoblox authored Jul 25, 2024
1 parent 564a2e9 commit 73f8204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/module_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ def compare_objects(self, current_object, proposed_object):
return False

# If the lists are of a different length the objects and order of element mismatch
if proposed_item != current_item:
# Ignore DHCP options while comparing due to extra num param is get response
if key != 'options' and proposed_item != current_item:
return False

elif isinstance(proposed_item, dict):
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/nios_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def check_ip_addr_type(obj_filter, ib_spec):
if 'container' in obj_filter and obj_filter['container']:
check_ip = ip.split('/')
del ib_spec['container'] # removing the container key from post arguments
del ib_spec['options'] # removing option argument as for network container it's not supported
if validate_ip_address(check_ip[0]):
return NIOS_IPV4_NETWORK_CONTAINER, ib_spec
elif validate_ip_v6_address(check_ip[0]):
Expand Down

0 comments on commit 73f8204

Please sign in to comment.