Skip to content

Commit

Permalink
Add the 'radius' path (#245)
Browse files Browse the repository at this point in the history
* Fixes #241: Add the 'radius' path

* Add changelog fragment

---------

Co-authored-by: Johannes Münch <[email protected]>
  • Loading branch information
derdeagle and derdeagle authored Dec 28, 2023
1 parent e4e5f64 commit 1d6feda
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/245-add-radius-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add ``radius`` path (https://github.com/ansible-collections/community.routeros/issues/241, https://github.com/ansible-collections/community.routeros/pull/245).
22 changes: 22 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3228,6 +3228,28 @@ def join_path(path):
},
),
),
('radius', ): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'accounting-backup': KeyInfo(default=False),
'accounting-port': KeyInfo(default=1813),
'address': KeyInfo(default='0.0.0.0'),
'authentication-port': KeyInfo(default=1812),
'called-id': KeyInfo(),
'certificate': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'domain': KeyInfo(),
'protocol': KeyInfo(default='udp'),
'realm': KeyInfo(),
'secret': KeyInfo(),
'service': KeyInfo(),
'src-address': KeyInfo(default='0.0.0.0'),
'timeout': KeyInfo(default='300ms'),
},
),
),
('radius', 'incoming'): APIData(
unversioned=VersionedAPIData(
single_value=True,
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 @@ -168,6 +168,7 @@
- ppp profile
- queue interface
- queue tree
- radius
- radius incoming
- routing bgp connection
- routing bgp instance
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 @@ -177,6 +177,7 @@
- ppp profile
- queue interface
- queue tree
- radius
- radius incoming
- routing bgp connection
- routing bgp instance
Expand Down

0 comments on commit 1d6feda

Please sign in to comment.