diff --git a/changelogs/fragments/106-api-path-ip-dhcp-network.yml b/changelogs/fragments/106-api-path-ip-dhcp-network.yml new file mode 100644 index 0000000..4cb64e4 --- /dev/null +++ b/changelogs/fragments/106-api-path-ip-dhcp-network.yml @@ -0,0 +1,2 @@ +bugfixes: + - "api_modify, api_info - make API path ``ip dhcp-server network`` support missing options ``boot-file-name``, ``dhcp-option-set``, ``dns-none``, ``domain``, and ``next-server`` (https://github.com/ansible-collections/community.routeros/issues/104, https://github.com/ansible-collections/community.routeros/pull/106)." diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 7951fed..5d2958f 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -763,12 +763,17 @@ PATHS = { primary_keys=('address', ), fields={ 'address': KeyInfo(), + 'boot-file-name': KeyInfo(default=''), 'caps-manager': KeyInfo(default=''), 'comment': KeyInfo(can_disable=True, remove_value=''), 'dhcp-option': KeyInfo(default=''), + 'dhcp-option-set': KeyInfo(default=''), + 'dns-none': KeyInfo(default=''), 'dns-server': KeyInfo(default=''), + 'domain': KeyInfo(default=''), 'gateway': KeyInfo(automatically_computed_from=('address', )), 'netmask': KeyInfo(automatically_computed_from=('address', )), + 'next-server': KeyInfo(default=''), 'ntp-server': KeyInfo(default=''), 'wins-server': KeyInfo(default=''), },