Skip to content

Commit

Permalink
Add support for the "port remote-access" path
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi committed Sep 20, 2023
1 parent dc11050 commit cccb1e0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/224-add-port-remote-access.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``port remote-access`` path (https://github.com/ansible-collections/community.routeros/pull/224).
14 changes: 14 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2818,6 +2818,20 @@ def join_path(path):
},
),
),
('port', 'remote-access'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'allowed-addresses': KeyInfo(default='0.0.0.0/0'),
'channel': KeyInfo(default=0),
'disabled': KeyInfo(default=False),
'log-file': KeyInfo(default=""),
'port': KeyInfo(required=True),
'protocol': KeyInfo(default='rfc2217'),
'tcp-port': KeyInfo(default=0),
},
),
),
('ppp', 'aaa'): 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 @@ -147,6 +147,7 @@
- mpls
- mpls ldp
- port firmware
- port remote-access
- ppp aaa
- ppp profile
- queue interface
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 @@ -156,6 +156,7 @@
- mpls
- mpls ldp
- port firmware
- port remote-access
- ppp aaa
- ppp profile
- queue interface
Expand Down

0 comments on commit cccb1e0

Please sign in to comment.