cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12
Views
0
Helpful
2
Replies
Highlighted
Cisco Employee

label and comment field in Rollback files

My customer will use NSO through REST API, but wondering how to select rollback file.

 

Rollback file name ³0², ³1², .. is not enough for customer purpose.

 

Customer asks if ³label² or ³comment² can be specified in REST PUT/POST method, this field can be used for transaction id code from upper OSS system.

 

 

So, question is <label> or <comment> can be set in REST API ?

 

 

$ curl -u admin:admin -X GET "http://127.0.0.1:8080/api/rollbacks" -H "Application:vnd.yang.api+xml"

 

 

        The result looks like:

 

 

     <rollbacks xmlns="http://tail-f.com/ns/rest"...>

 

       <file>

 

<name>0</name>

 

<creator>admin</creator>

 

<date>2014-09-23 14:53:23</date>

 

<via>rest</via>

 

<label></label>

 

<comment></comment>

 

</file>

 

       <file>

 

<name>1</name>

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: label and comment field in Rollback files

Perhaps we can get  commit label and comment functionality into the maapi applyTrans() commit Flags as well..

 

Not there today.

View solution in original post

2 REPLIES 2
Cisco Employee

Re: label and comment field in Rollback files

I can see that label can be set via the CLI:

 

admin@ncs(config)# commit

 

Possible completions:

 

label - Add a commit label

 

 

Didn’t see that in the REST documentation. Perhaps we need to add that.

Cisco Employee

Re: label and comment field in Rollback files

Perhaps we can get  commit label and comment functionality into the maapi applyTrans() commit Flags as well..

 

Not there today.

View solution in original post

Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.