Add upnp interfaces, graphing interface and resource (#227)

* Add ip upnp interfaces

* Add tool graphing interface and resource

* Update changelog
This commit is contained in:
Andrei Costescu 2023-10-07 14:25:52 +02:00 committed by GitHub
parent 9b4774c78d
commit 226649ac13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 0 deletions

View file

@ -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).

View file

@ -2415,6 +2415,18 @@ PATHS = {
},
),
),
('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,
@ -3180,6 +3192,33 @@ PATHS = {
},
),
),
('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,

View file

@ -133,6 +133,7 @@ options:
- ip traffic-flow ipfix
- ip traffic-flow target
- ip upnp
- ip upnp interfaces
- ipv6 address
- ipv6 dhcp-client
- ipv6 dhcp-server
@ -190,6 +191,8 @@ options:
- 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

View file

@ -142,6 +142,7 @@ options:
- ip traffic-flow ipfix
- ip traffic-flow target
- ip upnp
- ip upnp interfaces
- ipv6 address
- ipv6 dhcp-client
- ipv6 dhcp-server
@ -199,6 +200,8 @@ options:
- 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