-
Notifications
You must be signed in to change notification settings - Fork 48
napalm --optional_args, ValueError: malformed string #309
Comments
Interesting... Could you send a PR, please? |
Done #310 |
Just in case anyone else hits this error while running the napalm cli. There is a simple fix - optional args that are of a string value must be quoted: This will throw an exception:
This will work:
Notice that As @pierky pointed out, this is related to So, in the case of the cli Example:
|
@ctopher78 FYI, this repository is deprecated. If you have issues or updates, you should make those against the main napalm repository. |
Thanks @ktbyers. I'll see if this issue exists in that repo and submit a PR. |
Hello,
I'm getting "ValueError: malformed string" when using
--optional_args
to connect to a device via telnet.I'm using the develop branches of both napalm-base (e21f10f) and napalm-ios.
I can make it work by removing the
ast.literal_eval()
call here:napalm-base/napalm_base/clitools/helpers.py
Lines 124 to 125 in e21f10f
Python 2.7.6:
Python 3.4.0:
The text was updated successfully, but these errors were encountered: