cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1279
Views
0
Helpful
3
Replies

re-deploy dry-run using Java

neetimit
Cisco Employee
Cisco Employee

Hello!

 

If anyone has the code snippet for re-deploy dry-run in java, can you please share?

 

Thanks,

Neetika

1 Accepted Solution

Accepted Solutions

neetimit
Cisco Employee
Cisco Employee

ConfXMLParam[] params1 =

    new ConfXMLParam[] {

        new ConfXMLParamStart(cs, Ncs._dry_run_),

        new ConfXMLParamValue(cs.hash(), Ncs._outformat, new ConfEnumeration(Ncs._outformat_native)),

        new ConfXMLParamStop(cs, Ncs._dry_run_)};

ConfXMLParam[] diff =  maapi.requestAction(params1, path + "{%s %s %s}/re-deploy", <key>);

for (ConfXMLParam p : diff) {

.

.

}

}

View solution in original post

3 Replies 3

Alexander Stevenson
Cisco Employee
Cisco Employee

Hello Neetika,

 

I would definitely take a look at the NSO Developer space on GitHub

 

Hope this helps!

neetimit
Cisco Employee
Cisco Employee

ConfXMLParam[] params1 =

    new ConfXMLParam[] {

        new ConfXMLParamStart(cs, Ncs._dry_run_),

        new ConfXMLParamValue(cs.hash(), Ncs._outformat, new ConfEnumeration(Ncs._outformat_native)),

        new ConfXMLParamStop(cs, Ncs._dry_run_)};

ConfXMLParam[] diff =  maapi.requestAction(params1, path + "{%s %s %s}/re-deploy", <key>);

for (ConfXMLParam p : diff) {

.

.

}

}

subhapad
Cisco Employee
Cisco Employee

If anyone has the code snippet for re-deploy dry-run in python, can you please share?

Thanks in Advance!

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?