diff --git a/changelogs/fragments/303-add-ipv6-nd-prefix.yml b/changelogs/fragments/303-add-ipv6-nd-prefix.yml new file mode 100644 index 00000000..b28915a6 --- /dev/null +++ b/changelogs/fragments/303-add-ipv6-nd-prefix.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``ipv6 nd prefix`` path (https://github.com/ansible-collections/community.routeros/pull/303). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 218b379d..7112be07 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -3682,6 +3682,22 @@ def join_path(path): }, ), ), + ('ipv6', 'nd', 'prefix'): APIData( + unversioned=VersionedAPIData( + fully_understood=True, + fields={ + '6to4-interface': KeyInfo(default='none'), + 'autonomous': KeyInfo(), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'interface': KeyInfo(required=True), + 'on-link': KeyInfo(default=True), + 'preferred-lifetime': KeyInfo(), + 'prefix': KeyInfo(), + 'valid-lifetime': KeyInfo(), + }, + ), + ), ('ipv6', 'nd', 'prefix', 'default'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 7f45ef57..47405bde 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -174,6 +174,7 @@ - ipv6 firewall nat - ipv6 firewall raw - ipv6 nd + - ipv6 nd prefix - ipv6 nd prefix default - ipv6 route - ipv6 settings diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index eb065668..d1026c4e 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -183,6 +183,7 @@ - ipv6 firewall nat - ipv6 firewall raw - ipv6 nd + - ipv6 nd prefix - ipv6 nd prefix default - ipv6 route - ipv6 settings