From 1d58ea00aa86edc6186afdb1e2ab3751e23d7e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCnch?= Date: Mon, 14 Oct 2024 16:18:17 +0200 Subject: [PATCH] Add new parameters from RouterOS 7.16 release h3. /interface/bridge - `forward-reserved-addresses` with default value `False` - `max-learned-entries` with default value `auto` h3. /ip/neighbor/discovery-settings - `lldp-mac-phy-config` with default value `False` (from Router OS 7.15 release) - `discover-interval` with default value `30s` - `lldp-vlan-info` with default value `False` h3. /ip/settings - `ipv4-multipath-hash-policy` with default value `l3` h3. /ipv6/settings - `multipath-hash-policy` with default value `l3` h3. /ip/dhcp-server/option - `comment` h3. /ip/dhcp-server/option/sets - `comment` h3. /ip/dhcp-server/matcher - `comment` h3. /tool/netwatch - `acccept-icmp-time-exceeded` with default value `False` - `ttl` with defaut value `255` h3. /ip/service - `max-sessions` with default value `20` --- plugins/module_utils/_api_data.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index a7985cf6..847f5b13 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -262,6 +262,8 @@ def join_path(path): versioned_fields=[ ([('7.0', '<')], 'ingress-filtering', KeyInfo(default=False)), ([('7.0', '>=')], 'ingress-filtering', KeyInfo(default=True)), + ([('7.16', '>=')], 'forward-reserved-addresses', KeyInfo(default=False)), + ([('7.16', '>=')], 'max-learned-entries', KeyInfo(default='auto')), ], fields={ 'admin-mac': KeyInfo(default=''), @@ -1450,6 +1452,9 @@ def join_path(path): fully_understood=True, versioned_fields=[ ([('7.7', '>=')], 'mode', KeyInfo(default='tx-and-rx')), + ([('7.15', '>=')], 'lldp-mac-phy-config', KeyInfo(default=False)), + ([('7.16', '>=')], 'discover-interval', KeyInfo(default='30s')), + ([('7.16', '>=')], 'lldp-vlan-info', KeyInfo(default=False)), ], fields={ 'discover-interface-list': KeyInfo(), @@ -1462,6 +1467,9 @@ def join_path(path): unversioned=VersionedAPIData( single_value=True, fully_understood=True, + versioned_fields=[ + ([('7.16', '>=')], 'ipv4-multipath-hash-policy', KeyInfo(default='l3')), + ], fields={ 'accept-redirects': KeyInfo(default=False), 'accept-source-route': KeyInfo(default=False), @@ -1498,6 +1506,9 @@ def join_path(path): unversioned=VersionedAPIData( single_value=True, fully_understood=True, + versioned_fields=[ + ([('7.16', '>=')], 'multipath-hash-policy', KeyInfo(default='l3')), + ], fields={ 'accept-redirects': KeyInfo(default='yes-if-forwarding-disabled'), 'accept-router-advertisements': KeyInfo(default='yes-if-forwarding-disabled'), @@ -2807,6 +2818,9 @@ def join_path(path): unversioned=VersionedAPIData( fully_understood=True, primary_keys=('name',), + versioned_fields=[ + ([('7.16', '>=')], 'comment', KeyInfo(can_disable=True, remove_value='')), + ], fields={ 'code': KeyInfo(required=True), 'name': KeyInfo(), @@ -2819,6 +2833,9 @@ def join_path(path): unversioned=VersionedAPIData( fully_understood=True, primary_keys=('name',), + versioned_fields=[ + ([('7.16', '>=')], 'comment', KeyInfo(can_disable=True, remove_value='')), + ], fields={ 'name': KeyInfo(required=True), 'options': KeyInfo(), @@ -2831,6 +2848,7 @@ def join_path(path): fully_understood=True, primary_keys=('name', ), versioned_fields=[ + ([('7.16', '>=')], 'comment', KeyInfo(can_disable=True, remove_value='')), ([('7.16', '>=')], 'matching-type', KeyInfo()), ], fields={ @@ -4458,6 +4476,10 @@ def join_path(path): versioned=[ ('7', '>=', VersionedAPIData( fully_understood=True, + versioned_fields=[ + ([('7.16', '>=')], 'accept-icmp-time-exceeded', KeyInfo(default=False)), + ([('7.16', '>=')], 'ttl', KeyInfo(default=255)), + ], fields={ 'certificate': KeyInfo(), 'check-certificate': KeyInfo(), @@ -5133,6 +5155,9 @@ def join_path(path): fixed_entries=True, primary_keys=('name', ), fully_understood=True, + versioned_fields=[ + ([('7.16', '>=')], 'max-sessions', KeyInfo(default=20)), + ], fields={ 'address': KeyInfo(), 'certificate': KeyInfo(),