Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NoneType' object has no attribute 'group'" error when using jsonrpc.py with RADIUS MGMT on 22.7 and greater #3

Open
tizzet opened this issue May 13, 2020 · 1 comment

Comments

@tizzet
Copy link

tizzet commented May 13, 2020

When using the jasonrpc.py script with RADIUS MGMT enabled on EXOS version 22.7 and greater, the following error/output is seen:

Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save


{
"id": 1,
"jsonrpc": "2.0",
"result": {
"error": "error processing command save 'NoneType' object has no attribute 'group'"
}
}

Downgrading switch to 22.6 produces correct results (with RADIUS MGMT enabled):

Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save


{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"CLIoutput": "The configuration file ty_jsoncli.cfg already exists.\nSaving configuration ty_jsoncli.cfg on master ....... done!\nConfiguration saved to ty_jsoncli.cfg successfully.\n"
},
{
"status": "SUCCESS",
"useConfig": {
"msmAName": "ty_jsoncli.cfg",
"msmBName": null,
"name": "ty_jsoncli",
"switchPortInitMode": 0
}
}
]
}

Formatted CLIoutput Display


The configuration file ty_jsoncli.cfg already exists.
Saving configuration ty_jsoncli.cfg on master ....... done!
Configuration saved to ty_jsoncli.cfg successfully.


-tested with python 3.6
-issue also seen in EXOS 30.x
-issue only seen when radius mgmt access is used on v22.7 and greater
-any show or commit command produces 'NoneType' object has no attribute 'group' error
-authentication valid
-submitting issue here to help rule out script as potential issue

X460G2-24t-G4.13 # sh log
05/13/2020 23:09:20.52 Info:AAA.authPass Login passed for user administrator through app (10...**)

Module aaa configuration.

configure radius mgmt-access primary server 10...** 1812 client-ip 10...** vr VR-Mgmt
configure radius mgmt-access primary shared-secret encrypted "#################"
enable radius mgmt-access

Steps to reproduce:

  1. Load switch switch EXOS 22.7 or greater
  2. Configure switch for RADIUS MGMT authentication
  3. Run jsoncli.py against switch
@mgherm
Copy link

mgherm commented Mar 12, 2024

I was getting the same error message when using the JsonRPC.cli method from jsonrpc.py, albeit with a different configuration. In my case, passing "params" as a list instead of a string fixed the error. The comments say you can pass a single command as a string, but this is incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants