Request for AAA Access Details
In this use case, you use a Calvados model to view AAA access details.
Note |
If any user on XR is deleted, the local database checks whether there is a first user on Calvados VM.
|
Prerequisites
-
Ensure that the user is added to the Calvados environment. This is because even if the user is added to the XR environment and has
root-lr
permissions, access to Calvados models is denied. -
Establish a NETCONF or gRPC connection between the router and the client application.
Note
The gRPC YANG path or JSON data is based on YANG module name and not YANG namespace.
-
Using standard YANG tools, send a request to the router from the client using the NETCONF <get> operation. [ Request ] <get> <filter type="subtree"> <aaa xmlns="http://tail-f.com/ns/aaa/1.1"> <privileged-access xmlns="http://www.cisco.com/calvados/aaa_show"/> </aaa> </filter> </get>
-
Verify the response sent by the router to the client. [ Response ] <?xml version="1.0" encoding="UTF-8"?><data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <aaa xmlns="http://tail-f.com/ns/aaa/1.1"> <privileged-access xmlns="http://www.cisco.com/calvados/aaa_show"> <shell-access>None</shell-access> <first-user>root</first-user> <first-user-change>No</first-user-change> <current-disaster-recovery-user>root</current-disaster-recovery-user> </privileged-access> </aaa> </data>
Note |
|