diff --git a/changelogs/fragments/156-ip_dhcp-server_network.yml b/changelogs/fragments/156-ip_dhcp-server_network.yml new file mode 100644 index 0000000..d89f834 --- /dev/null +++ b/changelogs/fragments/156-ip_dhcp-server_network.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_modify - adapt data for API paths ``ip dhcp-server network`` (https://github.com/ansible-collections/community.routeros/pull/156). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index ec5ae3b..caec1ed 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -1356,12 +1356,12 @@ PATHS = { 'comment': KeyInfo(can_disable=True, remove_value=''), 'dhcp-option': KeyInfo(default=''), 'dhcp-option-set': KeyInfo(default=''), - 'dns-none': KeyInfo(default=''), + 'dns-none': KeyInfo(default=False), 'dns-server': KeyInfo(default=''), 'domain': KeyInfo(default=''), - 'gateway': KeyInfo(automatically_computed_from=('address', )), - 'netmask': KeyInfo(automatically_computed_from=('address', )), - 'next-server': KeyInfo(default=''), + 'gateway': KeyInfo(default=''), + 'netmask': KeyInfo(can_disable=True, remove_value=0), + 'next-server': KeyInfo(can_disable=True), 'ntp-server': KeyInfo(default=''), 'wins-server': KeyInfo(default=''), },