Skip to content

Commit 9dba808

Browse files
authored
Field name change in 'routing bgp connection' (from 'address-families' to 'afi') (#360)
* Field name change in 'routing bgp connection' (from 'address-families' to 'afi') * Field name change in 'routing bgp connection' (from 'address-families' to 'afi')
1 parent 3a34752 commit 9dba808

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- api_modify, api_info - field name change in ``routing bgp connection`` path implemented by RouterOS 7.19 and newer (https://github.com/ansible-collections/community.routeros/pull/360).

plugins/module_utils/_api_data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4982,10 +4982,13 @@ def join_path(path):
49824982
('routing', 'bgp', 'connection'): APIData(
49834983
unversioned=VersionedAPIData(
49844984
fully_understood=True,
4985+
versioned_fields=[
4986+
([('7.19', '<')], 'address-families', KeyInfo()),
4987+
([('7.19', '>=')], 'afi', KeyInfo()),
4988+
],
49854989
fields={
49864990
'as': KeyInfo(),
49874991
'add-path-out': KeyInfo(),
4988-
'address-families': KeyInfo(),
49894992
'cisco-vpls-nlri-len-fmt': KeyInfo(),
49904993
'cluster-id': KeyInfo(),
49914994
'comment': KeyInfo(),

0 commit comments

Comments
 (0)