Skip to content

get_resource.call keeps adding equal signs to parameters #109

Description

@dustojnikhummer

routeros-api version 0.21.0
Python 3.13.5
RouterOS 7.19.2

api.get_resource('/').call('export', {'verbose': None, 'file': 'test.rsc'})

returns
routeros_api.exceptions.RouterOsApiCommunicationError: ('Error "not enough permissions (9)" executing command b\'/export =verbose =file=test.rsc .tag=2\'', b'not enough permissions (9)')

I based it on

CLI command: /interface/ethernet/poe/monitor numbers=0 once

>>> response = api.get_resource('/interface/ether/poe').call('monitor', {'numbers': '0', 'once': None})
>>> response
[{'name': 'ether10', 'poe-out': 'auto-on', 'poe-out-status': 'waiting-for-load'}]

Is this a bug or am I doing something wrong?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions