Skip to content

Commit

Permalink
Add support for 'ppp secret' path (#286)
Browse files Browse the repository at this point in the history
* Add support for 'ppp secret' path

* Add changelog fragment
  • Loading branch information
samburney authored May 18, 2024
1 parent 1953a79 commit 331a97b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/286-add_ppp_secret_path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add missing path ``/ppp secret`` (https://github.com/ansible-collections/community.routeros/pull/286).
21 changes: 21 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4600,6 +4600,27 @@ def join_path(path):
},
),
),
('ppp', 'secret'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('name', ),
fields={
'caller-id': KeyInfo(default=''),
'disabled': KeyInfo(default=False),
'ipv6-routes': KeyInfo(default=''),
'limit-bytes-in': KeyInfo(default=0),
'limit-bytes-out': KeyInfo(default=0),
'local-address': KeyInfo(can_disable=True),
'name': KeyInfo(required=True),
'password': KeyInfo(),
'profile': KeyInfo(default='default'),
'remote-address': KeyInfo(can_disable=True),
'remote-ipv6-prefix': KeyInfo(can_disable=True),
'routes': KeyInfo(can_disable=True),
'service': KeyInfo(default='any'),
},
),
),
('routing', 'bgp', 'aggregate'): APIData(
unversioned=VersionedAPIData(
primary_keys=('prefix',),
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
- port remote-access
- ppp aaa
- ppp profile
- ppp secret
- queue interface
- queue simple
- queue tree
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
- port remote-access
- ppp aaa
- ppp profile
- ppp secret
- queue interface
- queue simple
- queue tree
Expand Down

0 comments on commit 331a97b

Please sign in to comment.