Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upnp interfaces, graphing interface and resource #227

Merged
merged 3 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/227-add-upnp-graphing.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 ``ip upnp interfaces``, ``tool graphing interface``, ``tool graphing resource`` paths (https://github.com/ansible-collections/community.routeros/pull/227).
39 changes: 39 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,18 @@ def join_path(path):
},
),
),
('ip', 'upnp', 'interfaces'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('interface', 'type'),
fields={
'disabled': KeyInfo(default=False),
'interface': KeyInfo(),
'type': KeyInfo(),
'forced-ip': KeyInfo(can_disable=True),
},
),
),
('ipv6', 'dhcp-client'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down Expand Up @@ -3144,6 +3156,33 @@ def join_path(path):
},
),
),
('tool', 'graphing', 'interface'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'allow-address': KeyInfo(default='0.0.0.0/0'),
'interface': KeyInfo(default='all'),
'store-on-disk': KeyInfo(default=True),
},
)),
],
),
('tool', 'graphing', 'resource'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'allow-address': KeyInfo(default='0.0.0.0/0'),
'store-on-disk': KeyInfo(default=True),
},
)),
],
),
('tool', 'mac-server'): APIData(
unversioned=VersionedAPIData(
single_value=True,
Expand Down
3 changes: 3 additions & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
- ip traffic-flow ipfix
- ip traffic-flow target
- ip upnp
- ip upnp interfaces
- ipv6 address
- ipv6 dhcp-client
- ipv6 dhcp-server
Expand Down Expand Up @@ -187,6 +188,8 @@
- tool bandwidth-server
- tool e-mail
- tool graphing
- tool graphing interface
- tool graphing resource
- tool mac-server
- tool mac-server mac-winbox
- tool mac-server ping
Expand Down
3 changes: 3 additions & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
- ip traffic-flow ipfix
- ip traffic-flow target
- ip upnp
- ip upnp interfaces
- ipv6 address
- ipv6 dhcp-client
- ipv6 dhcp-server
Expand Down Expand Up @@ -196,6 +197,8 @@
- tool bandwidth-server
- tool e-mail
- tool graphing
- tool graphing interface
- tool graphing resource
- tool mac-server
- tool mac-server mac-winbox
- tool mac-server ping
Expand Down