mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-26 03:38:41 +02:00
Add support for additional '/mpls' paths (#272)
* Add support for additional '/mpls' paths - Enable '/mpls interface' for use in api_info/api_modify and update fields. - Add '/mpls ldp accept-filter' path. - Add '/mpls ldp advertise-filter' path. - Add '/mpls ldp interface' path. * Add changelogs/fragments/272-additional_mpls_path_support.yml * Fixed new paths in api_info.py and api_modify.py * Remove dot. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
78d2fdd0f2
commit
6fde8f3baf
4 changed files with 56 additions and 5 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_info, api_modify - add support for paths ``/mpls interface``, ``/mpls ldp accept-filter``, ``/mpls ldp advertise-filter`` and ``mpls ldp interface`` (https://github.com/ansible-collections/community.routeros/pull/272).
|
|
@ -3613,13 +3613,13 @@ PATHS = {
|
||||||
),
|
),
|
||||||
('mpls', 'interface'): APIData(
|
('mpls', 'interface'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
unknown_mechanism=True,
|
fully_understood=True,
|
||||||
# primary_keys=('default', ),
|
|
||||||
fields={
|
fields={
|
||||||
'default': KeyInfo(),
|
'disabled': KeyInfo(default=False),
|
||||||
'disabled': KeyInfo(),
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
'interface': KeyInfo(),
|
'interface': KeyInfo(required=True),
|
||||||
'mpls-mtu': KeyInfo(),
|
'mpls-mtu': KeyInfo(),
|
||||||
|
'info': KeyInfo(can_disable=True),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -3659,6 +3659,47 @@ PATHS = {
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
('mpls', 'ldp', 'accept-filter'): APIData(
|
||||||
|
unversioned=VersionedAPIData(
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'accept': KeyInfo(can_disable=True),
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'neighbor': KeyInfo(can_disable=True),
|
||||||
|
'prefix': KeyInfo(can_disable=True),
|
||||||
|
'vrf': KeyInfo(can_disable=True),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
('mpls', 'ldp', 'advertise-filter'): APIData(
|
||||||
|
unversioned=VersionedAPIData(
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'advertise': KeyInfo(default=''),
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'neighbor': KeyInfo(),
|
||||||
|
'prefix': KeyInfo(),
|
||||||
|
'vrf': KeyInfo(),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
('mpls', 'ldp', 'interface'): APIData(
|
||||||
|
unversioned=VersionedAPIData(
|
||||||
|
fully_understood=True,
|
||||||
|
fields={
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'comment': KeyInfo(can_disable=True, remove_value=''),
|
||||||
|
'accept-dynamic-neighbors': KeyInfo(can_disable=True),
|
||||||
|
'afi': KeyInfo(can_disable=True),
|
||||||
|
'hello-interval': KeyInfo(can_disable=True),
|
||||||
|
'hold-time': KeyInfo(can_disable=True),
|
||||||
|
'interface': KeyInfo(required=True),
|
||||||
|
'transport-addresses': KeyInfo(can_disable=True),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
('port', 'firmware'): APIData(
|
('port', 'firmware'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
single_value=True,
|
single_value=True,
|
||||||
|
|
|
@ -175,7 +175,11 @@ options:
|
||||||
- ipv6 route
|
- ipv6 route
|
||||||
- ipv6 settings
|
- ipv6 settings
|
||||||
- mpls
|
- mpls
|
||||||
|
- mpls interface
|
||||||
- mpls ldp
|
- mpls ldp
|
||||||
|
- mpls ldp accept-filter
|
||||||
|
- mpls ldp advertise-filter
|
||||||
|
- mpls ldp interface
|
||||||
- port firmware
|
- port firmware
|
||||||
- port remote-access
|
- port remote-access
|
||||||
- ppp aaa
|
- ppp aaa
|
||||||
|
|
|
@ -184,7 +184,11 @@ options:
|
||||||
- ipv6 route
|
- ipv6 route
|
||||||
- ipv6 settings
|
- ipv6 settings
|
||||||
- mpls
|
- mpls
|
||||||
|
- mpls interface
|
||||||
- mpls ldp
|
- mpls ldp
|
||||||
|
- mpls ldp accept-filter
|
||||||
|
- mpls ldp advertise-filter
|
||||||
|
- mpls ldp interface
|
||||||
- port firmware
|
- port firmware
|
||||||
- port remote-access
|
- port remote-access
|
||||||
- ppp aaa
|
- ppp aaa
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue