mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-27 12:08:58 +02:00
Add RouterOS 7.x support to '/mpls ldp' path (#271)
* Added RouterOS 7.x support to '/mpls ldp' path * Updated /mpls ldp path - Reordered fields to match CLI - Set 'vrf' field as primary key - Fixed distribute-for-default field - Added missing fields from RouterOS 7.x * Add changelog fragment
This commit is contained in:
parent
99581a00f7
commit
59f6591621
2 changed files with 36 additions and 14 deletions
2
changelogs/fragments/271-mpls_ldp_routeros_7_support.yml
Normal file
2
changelogs/fragments/271-mpls_ldp_routeros_7_support.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_info, api_modify - Add RouterOS 7.x support to ``/mpls ldp`` path (https://github.com/ansible-collections/community.routeros/pull/271).
|
|
@ -3602,7 +3602,26 @@ PATHS = {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
('mpls', 'ldp'): APIData(
|
('mpls', 'ldp'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
versioned=[
|
||||||
|
('7.1', '>=', VersionedAPIData(
|
||||||
|
fully_understood=True,
|
||||||
|
primary_keys=('vrf', ),
|
||||||
|
fields={
|
||||||
|
'afi': KeyInfo(can_disable=True),
|
||||||
|
'distribute-for-default': KeyInfo(can_disable=True),
|
||||||
|
'path-vector-limit': KeyInfo(can_disable=True),
|
||||||
|
'vrf': KeyInfo(),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'hop-limit': KeyInfo(can_disable=True),
|
||||||
|
'preferred-afi': KeyInfo(can_disable=True),
|
||||||
|
'loop-detect': KeyInfo(can_disable=True),
|
||||||
|
'transport-addresses': KeyInfo(can_disable=True),
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'lsr-id': KeyInfo(can_disable=True),
|
||||||
|
'use-explicit-null': KeyInfo(can_disable=True),
|
||||||
|
},
|
||||||
|
)),
|
||||||
|
('7.1', '<', VersionedAPIData(
|
||||||
single_value=True,
|
single_value=True,
|
||||||
fully_understood=True,
|
fully_understood=True,
|
||||||
fields={
|
fields={
|
||||||
|
@ -3615,7 +3634,8 @@ PATHS = {
|
||||||
'transport-address': KeyInfo(default='0.0.0.0'),
|
'transport-address': KeyInfo(default='0.0.0.0'),
|
||||||
'use-explicit-null': KeyInfo(default=False),
|
'use-explicit-null': KeyInfo(default=False),
|
||||||
},
|
},
|
||||||
),
|
)),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
('port', 'firmware'): APIData(
|
('port', 'firmware'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue