Skip to content

Commit

Permalink
Add new parameters from RouterOS 7.16 release (#323)
Browse files Browse the repository at this point in the history
* 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`

Add changelog fragment

* Update changelogs/fragments/323-add-ros-7.16-parameters.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
derdeagle and felixfontein authored Oct 14, 2024
1 parent 945e4d4 commit b499d9d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/323-add-ros-7.16-parameters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add new parameters from the RouterOS 7.16 release (https://github.com/ansible-collections/community.routeros/pull/323).
25 changes: 25 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=''),
Expand Down Expand Up @@ -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(),
Expand All @@ -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),
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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(),
Expand All @@ -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(),
Expand All @@ -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={
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit b499d9d

Please sign in to comment.