Support routing id and bgp connection (#220)

* Support "/routing id"

https://help.mikrotik.com/docs/pages/viewpage.action?pageId=59965506

* Support "/routing bgp connection"

https://help.mikrotik.com/docs/display/ROS/BGP#BGP-ConnectionMenu

* Add changelog fragment

* Add period.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Andrei Costescu 2023-10-07 14:38:37 +02:00 committed by GitHub
parent 226649ac13
commit a6979c7f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_modify, api_info - support API paths ``routing id``, ``routing bgp connection`` (https://github.com/ansible-collections/community.routeros/pull/220).

View file

@ -2888,6 +2888,18 @@ PATHS = {
}, },
), ),
), ),
('routing', 'id'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'disabled': KeyInfo(default=False),
'id': KeyInfo(),
'name': KeyInfo(),
'select-dynamic-id': KeyInfo(),
'select-from-vrf': KeyInfo(),
},
),
),
('routing', 'bfd', 'interface'): APIData( ('routing', 'bfd', 'interface'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
unknown_mechanism=True, unknown_mechanism=True,
@ -3533,6 +3545,28 @@ PATHS = {
}, },
), ),
), ),
('routing', 'bgp', 'connection'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'as': KeyInfo(),
'name': KeyInfo(required=True),
'connect': KeyInfo(default=True),
'listen': KeyInfo(default=True),
'local.address': KeyInfo(),
'local.port': KeyInfo(),
'local.role': KeyInfo(required=True),
'local.ttl': KeyInfo(),
'remote.address': KeyInfo(required=True),
'remote.port': KeyInfo(),
'remote.as': KeyInfo(),
'remote.allowed-as': KeyInfo(),
'remote.ttl': KeyInfo(),
'tcp-md5-key': KeyInfo(),
'templates': KeyInfo(),
},
),
),
('routing', 'bgp', 'instance'): APIData( ('routing', 'bgp', 'instance'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
fixed_entries=True, fixed_entries=True,

View file

@ -156,9 +156,11 @@ options:
- queue interface - queue interface
- queue tree - queue tree
- radius incoming - radius incoming
- routing bgp connection
- routing bgp instance - routing bgp instance
- routing filter rule - routing filter rule
- routing filter select-rule - routing filter select-rule
- routing id
- routing mme - routing mme
- routing ospf area - routing ospf area
- routing ospf area range - routing ospf area range

View file

@ -165,9 +165,11 @@ options:
- queue interface - queue interface
- queue tree - queue tree
- radius incoming - radius incoming
- routing bgp connection
- routing bgp instance - routing bgp instance
- routing filter rule - routing filter rule
- routing filter select-rule - routing filter select-rule
- routing id
- routing mme - routing mme
- routing ospf area - routing ospf area
- routing ospf area range - routing ospf area range