Finalize fields for "ppp profile" (#217)

A few defaults were missing for `ppp profile`. Mark the path as fully
understood to enable its use in Ansible tasks.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-17 14:37:29 +02:00 committed by GitHub
parent cf6c79e1b3
commit 2bbaf26484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 13 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - finalize fields for the ``ppp profile`` path and enable it (https://github.com/ansible-collections/community.routeros/pull/217).

View file

@ -3339,36 +3339,37 @@ PATHS = {
), ),
('ppp', 'profile'): APIData( ('ppp', 'profile'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
has_identifier=True, fully_understood=True,
primary_keys=('name', ),
fields={ fields={
'address-list': KeyInfo(), 'address-list': KeyInfo(default=''),
'bridge': KeyInfo(can_disable=True), 'bridge': KeyInfo(can_disable=True),
'bridge-horizon': KeyInfo(can_disable=True), 'bridge-horizon': KeyInfo(can_disable=True),
'bridge-learning': KeyInfo(), 'bridge-learning': KeyInfo(default='default'),
'bridge-path-cost': KeyInfo(can_disable=True), 'bridge-path-cost': KeyInfo(can_disable=True),
'bridge-port-priority': KeyInfo(can_disable=True), 'bridge-port-priority': KeyInfo(can_disable=True),
'change-tcp-mss': KeyInfo(), 'change-tcp-mss': KeyInfo(default=True),
'dns-server': KeyInfo(can_disable=True), 'dns-server': KeyInfo(can_disable=True),
'idle-timeout': KeyInfo(can_disable=True), 'idle-timeout': KeyInfo(can_disable=True),
'incoming-filter': KeyInfo(can_disable=True), 'incoming-filter': KeyInfo(can_disable=True),
'insert-queue-before': KeyInfo(can_disable=True), 'insert-queue-before': KeyInfo(can_disable=True),
'interface-list': KeyInfo(can_disable=True), 'interface-list': KeyInfo(can_disable=True),
'local-address': KeyInfo(can_disable=True), 'local-address': KeyInfo(can_disable=True),
'name': KeyInfo(), 'name': KeyInfo(required=True),
'on-down': KeyInfo(), 'on-down': KeyInfo(default=''),
'on-up': KeyInfo(), 'on-up': KeyInfo(default=''),
'only-one': KeyInfo(), 'only-one': KeyInfo(default='default'),
'outgoing-filter': KeyInfo(can_disable=True), 'outgoing-filter': KeyInfo(can_disable=True),
'parent-queue': KeyInfo(can_disable=True), 'parent-queue': KeyInfo(can_disable=True),
'queue-type': KeyInfo(can_disable=True), 'queue-type': KeyInfo(can_disable=True),
'rate-limit': KeyInfo(can_disable=True), 'rate-limit': KeyInfo(can_disable=True),
'remote-address': KeyInfo(can_disable=True), 'remote-address': KeyInfo(can_disable=True),
'session-timeout': KeyInfo(can_disable=True), 'session-timeout': KeyInfo(can_disable=True),
'use-compression': KeyInfo(), 'use-compression': KeyInfo(default='default'),
'use-encryption': KeyInfo(), 'use-encryption': KeyInfo(default='default'),
'use-ipv6': KeyInfo(), 'use-ipv6': KeyInfo(default=True),
'use-mpls': KeyInfo(), 'use-mpls': KeyInfo(default='default'),
'use-upnp': KeyInfo(), 'use-upnp': KeyInfo(default='default'),
'wins-server': KeyInfo(can_disable=True), 'wins-server': KeyInfo(can_disable=True),
}, },
), ),

View file

@ -148,6 +148,7 @@ options:
- mpls ldp - mpls ldp
- port firmware - port firmware
- ppp aaa - ppp aaa
- ppp profile
- queue interface - queue interface
- queue tree - queue tree
- radius incoming - radius incoming

View file

@ -157,6 +157,7 @@ options:
- mpls ldp - mpls ldp
- port firmware - port firmware
- ppp aaa - ppp aaa
- ppp profile
- queue interface - queue interface
- queue tree - queue tree
- radius incoming - radius incoming