Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '/routing bgp template' path #243

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/243-add-routing-bgp-template-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add missing path "/routing bgp template" (https://github.com/ansible-collections/community.routeros/pull/243).
derdeagle marked this conversation as resolved.
Show resolved Hide resolved
50 changes: 50 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3671,6 +3671,56 @@ def join_path(path):
},
),
),
('routing', 'bgp', 'template'): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
fully_understood=True,
fields={
'add-path-out': KeyInfo(),
'address-families': KeyInfo(default='ip'),
'as': KeyInfo(),
'as-override': KeyInfo(default=False),
'cisco-vpls-nlri-len-fmt': KeyInfo(),
'cluster-id': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'hold-time': KeyInfo(default='3m'),
'input.accept-communities': KeyInfo(),
'input.accept-ext-communities': KeyInfo(),
'input.accept-large-communities': KeyInfo(),
'input.accept-unknown': KeyInfo(),
'input.accept-nlri': KeyInfo(),
'input.affinity': KeyInfo(),
'input.allow-as': KeyInfo(),
'input.filter': KeyInfo(),
'input.ignore-as-path-len': KeyInfo(default=False),
'input.limit-nlri-diversity': KeyInfo(),
'input.limit-process-routes-ipv4': KeyInfo(),
'input.limit-process-routes-ipv6': KeyInfo(),
'keepalive-time': KeyInfo(default='3m'),
'multihop': KeyInfo(default=False),
'name': KeyInfo(),
'nexthop-choice': KeyInfo(default='default'),
'output.affinity': KeyInfo(),
'output.default-originate': KeyInfo(default='never'),
'output.default-prepent': KeyInfo(),
'output.filter-chain': KeyInfo(),
'output.filter-select': KeyInfo(),
'output.keep-sent-attributes': KeyInfo(default=False),
'output.network': KeyInfo(),
'output.no-client-to-client-reflection': KeyInfo(),
'output.no-early-cut': KeyInfo(),
'output.redistribute': KeyInfo(),
'remove-private-as': KeyInfo(default=False),
'router-id': KeyInfo(default='main'),
'routing-table': KeyInfo(default='main'),
'save-to': KeyInfo(),
'templates': KeyInfo(),
'use-bfd': KeyInfo(default=False),
'vrf': KeyInfo(default='main'),
},
),
),
('system', 'logging', 'action'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
- radius incoming
- routing bgp connection
- routing bgp instance
- routing bgp template
- routing filter rule
- routing filter select-rule
- routing id
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
- radius incoming
- routing bgp connection
- routing bgp instance
- routing bgp template
- routing filter rule
- routing filter select-rule
- routing id
Expand Down