Skip to content

Commit

Permalink
Add upnp interfaces, graphing interface and resource (#227)
Browse files Browse the repository at this point in the history
* Add ip upnp interfaces

* Add tool graphing interface and resource

* Update changelog
  • Loading branch information
cosandr authored Oct 7, 2023
1 parent 9b4774c commit 226649a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
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 @@ -2415,6 +2415,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 @@ -3180,6 +3192,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 @@ -133,6 +133,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 @@ -190,6 +191,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 @@ -142,6 +142,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 @@ -199,6 +200,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

0 comments on commit 226649a

Please sign in to comment.