Fix default of ingress-filtering for ROS < 7. (#306)

This commit is contained in:
Felix Fontein 2024-08-11 22:29:36 +02:00 committed by GitHub
parent 78466d0de4
commit 877c9fa4fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "api_modify, api_info - change the default of ``ingress-filtering`` in paths ``interface bridge`` and ``interface bridge port`` back to ``false`` for RouterOS before version 7 (https://github.com/ansible-collections/community.routeros/pull/305)."

View file

@ -259,6 +259,10 @@ PATHS = {
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
fully_understood=True, fully_understood=True,
primary_keys=('name', ), primary_keys=('name', ),
versioned_fields=[
([('7.0', '<')], 'ingress-filtering', KeyInfo(default=False)),
([('7.0', '>=')], 'ingress-filtering', KeyInfo(default=True)),
],
fields={ fields={
'admin-mac': KeyInfo(default=''), 'admin-mac': KeyInfo(default=''),
'ageing-time': KeyInfo(default='5m'), 'ageing-time': KeyInfo(default='5m'),
@ -273,7 +277,6 @@ PATHS = {
'frame-types': KeyInfo(default='admit-all'), 'frame-types': KeyInfo(default='admit-all'),
'forward-delay': KeyInfo(default='15s'), 'forward-delay': KeyInfo(default='15s'),
'igmp-snooping': KeyInfo(default=False), 'igmp-snooping': KeyInfo(default=False),
'ingress-filtering': KeyInfo(default=True),
'max-message-age': KeyInfo(default='20s'), 'max-message-age': KeyInfo(default='20s'),
'mtu': KeyInfo(default='auto'), 'mtu': KeyInfo(default='auto'),
'name': KeyInfo(), 'name': KeyInfo(),
@ -1310,6 +1313,10 @@ PATHS = {
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
fully_understood=True, fully_understood=True,
primary_keys=('interface', ), primary_keys=('interface', ),
versioned_fields=[
([('7.0', '<')], 'ingress-filtering', KeyInfo(default=False)),
([('7.0', '>=')], 'ingress-filtering', KeyInfo(default=True)),
],
fields={ fields={
'auto-isolate': KeyInfo(default=False), 'auto-isolate': KeyInfo(default=False),
'bpdu-guard': KeyInfo(default=False), 'bpdu-guard': KeyInfo(default=False),
@ -1322,7 +1329,6 @@ PATHS = {
'frame-types': KeyInfo(default='admit-all'), 'frame-types': KeyInfo(default='admit-all'),
'horizon': KeyInfo(default='none'), 'horizon': KeyInfo(default='none'),
'hw': KeyInfo(default=True), 'hw': KeyInfo(default=True),
'ingress-filtering': KeyInfo(default=True),
'interface': KeyInfo(), 'interface': KeyInfo(),
'internal-path-cost': KeyInfo(default=10), 'internal-path-cost': KeyInfo(default=10),
'learn': KeyInfo(default='auto'), 'learn': KeyInfo(default='auto'),