Skip to content

Commit

Permalink
Add support for the "ipv6 nd prefix" path (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmi authored Aug 1, 2024
1 parent ba806c0 commit 64ee613
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/303-add-ipv6-nd-prefix.yml
Original file line number Diff line number Diff line change
@@ -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).
16 changes: 16 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3697,6 +3697,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,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
- ipv6 firewall nat
- ipv6 firewall raw
- ipv6 nd
- ipv6 nd prefix
- ipv6 nd prefix default
- ipv6 route
- ipv6 settings
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
- ipv6 firewall nat
- ipv6 firewall raw
- ipv6 nd
- ipv6 nd prefix
- ipv6 nd prefix default
- ipv6 route
- ipv6 settings
Expand Down

0 comments on commit 64ee613

Please sign in to comment.