Skip to content

RFE: Support for specifying auth token to use #1510

@jbnance

Description

@jbnance

ICR added the ability to specify the auth token to use in F5Networks/f5-icontrol-rest-python#138.

Please add support for this parameter to the SDK.

Using:

f5-icontrol-rest==1.3.11
f5-sdk==3.0.20

I get the following:

mgmt = ManagementRoot(
    hostname,
    username,
    password,
    token=True,
    token_to_use='my_big_token_from_another_connection',
)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../f5env/lib/python3.6/site-packages/f5/bigip/__init__.py", line 169, in __init__
    hostname, username, password, **kwargs
  File ".../f5env/lib/python3.6/site-packages/f5/bigip/__init__.py", line 55, in __init__
    hostname, username, password, **kwargs
  File ".../f5env/lib/python3.6/site-packages/f5/bigip/__init__.py", line 72, in parse_arguments
    raise TypeError('Unexpected **kwargs: %r' % kwargs)
TypeError: Unexpected **kwargs: {'token_to_use': 'my_big_token_from_another_connection'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions