cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

66
Views
1
Helpful
2
Replies
khgrant
Cisco Employee

Need help on getting output of device's live-status from CDB

 

Hi Folks,

 

 

I’m trying to automate the port-attach of Bare Metal servers in VTS using NSO’s VTS NED. I need to run the following CLI in my service model’s call back code, get the entire String output, and parse the UUID value.

 

Anyone familiar with CdbSession has any idea how to do this?

 

admin@ncs% run show devices device vts live-status cisco-vts tenants tenant Toyota topologies topology Toyota networks

                                      BRIDGE  ADMIN                  PROVIDER  PROVIDER      PROVIDER                                       VTS                   VTS       

                                      DOMAIN  STATE                  PHYSICAL  SEGMENTATION  NETWORK   ROUTER                    VNI        ALLOCATED  MULTICAST  ALLOCATED 

ID                                    ID      UP     NAME            NETWORK   ID            TYPE      EXTERNAL  SHARED  STATUS  POOL  VNI  VNI        ADDRESS    MULTICAST 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1e319b0d-9030-4aa7-883f-058538968f1f  -       true   Toyota-ingress  -         12            vxlan     false     false   active  -     -    10010      -          -         

7fe91ad7-23fc-4f18-bb35-41eea16ff367  -       true   Toyota-A1-B1    -         11            vxlan     false     false   active  -     -    10009      -          -         

c9a80c84-dec3-466c-957e-9c855f35f1cb  -       true   Toyota-egress   -         10            vxlan     false     false   active  -     -    10008      -          -         

2 REPLIES 2
khgrant
Cisco Employee

 

Jonathan,

 

 

You can read state data from Maapi or Navu APIs just like any other leaf.

 

 

Roque

 

khgrant
Cisco Employee

 

Hi Roque,

 

Many thanks. Will I be able to obtain the entire string output (in my example output below) with Maapi or Navu? Would you be able to unicast me an example?

 

Regards,

Jonathan

 

Create
Recognize Your Peers
Content for Community-Ad