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

Community Helping Community

333
Views
0
Helpful
0
Replies
Highlighted

NSO Automation

Hello Guys,

 

in fact I work on the automation of NSO testing with robot framework
I finished the device configuration automation part and here is the code I used and it works

Add IOS loopback interface [Documentation] Add interface to device, 
PATCH restconf/data/devices/device=${NETSIM_IOS}/config/tailf-ned-cisco-ios:interface body=${ADD_LBK_IOS}
Integer response status 204
NETSIM_IOS: netsim-io-1
ADD_LBK_IOS: {
    "tailf-ned-cisco-ios:interface": {
        "Loopback": [
            {
                "name": 0
            }
        ]
    }
}

and I will need your help to automate the ncs command below:

 

administrator@ncs(config)# services SERVICE_NAME TEST001 access-device device-id netsim-io-1 interface-id 0/1
Value for 'services SERVICE_NAME TEST001 delivery-device device-id' [netsim-io-2]: 
Value for 'services SERVICE_NAME TEST001 delivery-device interface-id' (<string>): 0/1/2
Value for 'services SERVICE_NAME TEST001 pw-properties customer-name' (<string>): TOTO
Value for 'services SERVICE_NAME TEST001 pw-properties pw-id' (<unsignedInt, 12000 .. 12999>): 12000
Value for 'services SERVICE_NAME TEST001 pw-properties pw-class' [PORT_PW]: 
Value for 'services SERVICE_NAME TEST001 pw-properties service-rate' (<unsignedInt, 2 .. 1000>): 500
Value for 'services SERVICE_NAME TEST001 pw-properties vlan-id' (<unsignedShort, 700 .. 799>): 700

thanks a lot

Everyone's tags (2)