Skip to content

Commit

Permalink
Add support for '/routing bgp' paths (#277)
Browse files Browse the repository at this point in the history
* Add support for '/routing bgp' paths

* resolve conflicts

* add changelogs fragments
  • Loading branch information
vint2k authored Apr 18, 2024
1 parent c6be391 commit 018125d
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/277-add_routing_bgp_paths.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add missing paths ``/routing bgp aggregate``, ``/routing bgp network`` and ``/routing bgp peer`` (https://github.com/ansible-collections/community.routeros/pull/277).
64 changes: 64 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4516,6 +4516,23 @@ def join_path(path):
},
),
),
('routing', 'bgp', 'aggregate'): APIData(
unversioned=VersionedAPIData(
primary_keys=('prefix',),
fully_understood=True,
fields={
'advertise-filter': KeyInfo(),
'attribute-filter': KeyInfo(),
'disabled': KeyInfo(default=False),
'include-igp': KeyInfo(default=False),
'inherit-attributes': KeyInfo(default=True),
'instance': KeyInfo(required=True),
'prefix': KeyInfo(required=True),
'summary-only': KeyInfo(default=True),
'suppress-filter': KeyInfo(),
},
),
),
('routing', 'bgp', 'connection'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down Expand Up @@ -4600,6 +4617,53 @@ def join_path(path):
},
),
),
('routing', 'bgp', 'network'): APIData(
unversioned=VersionedAPIData(
primary_keys=('network',),
fully_understood=True,
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'network': KeyInfo(required=True),
'synchronize': KeyInfo(default=True),
},
),
),
('routing', 'bgp', 'peer'): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
fully_understood=True,
fields={
'address-families': KeyInfo(default='ip'),
'allow-as-in': KeyInfo(can_disable=True, remove_value=''),
'as-override': KeyInfo(default=False),
'cisco-vpls-nlri-len-fmt': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'default-originate': KeyInfo(default='never'),
'disabled': KeyInfo(default=False),
'hold-time': KeyInfo(default='3m'),
'in-filter': KeyInfo(),
'instance': KeyInfo(),
'keepalive-time': KeyInfo(can_disable=True, remove_value=''),
'max-prefix-limit': KeyInfo(can_disable=True, remove_value=''),
'max-prefix-restart-time': KeyInfo(can_disable=True, remove_value=''),
'multihop': KeyInfo(default=False),
'name': KeyInfo(),
'nexthop-choice': KeyInfo(default='default'),
'passive': KeyInfo(default=False),
'out-filter': KeyInfo(),
'remote-address': KeyInfo(required=True),
'remote-as': KeyInfo(required=True),
'remote-port': KeyInfo(can_disable=True, remove_value=''),
'remove-private-as': KeyInfo(default=False),
'route-reflect': KeyInfo(default=False),
'tcp-md5-key': KeyInfo(),
'ttl': KeyInfo(default='default'),
'update-source': KeyInfo(can_disable=True, remove_value='none'),
'use-bfd': KeyInfo(default=False),
},
),
),
('routing', 'bgp', 'template'): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
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 @@ -191,8 +191,11 @@
- queue type
- radius
- radius incoming
- routing bgp aggregate
- routing bgp connection
- routing bgp instance
- routing bgp network
- routing bgp peer
- routing bgp template
- routing filter rule
- routing filter select-rule
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 @@ -200,8 +200,11 @@
- queue type
- radius
- radius incoming
- routing bgp aggregate
- routing bgp connection
- routing bgp instance
- routing bgp network
- routing bgp peer
- routing bgp template
- routing filter rule
- routing filter select-rule
Expand Down

0 comments on commit 018125d

Please sign in to comment.