01-20-2022 11:21 PM
Feature/Capability to rollback using Labels (instead of using just Rollback ID) using NSO
We are using NSO for our Automation efforts. Part of this we wanted to create a functionality to rollback all the changes made under a Change Request Number. This can be useful for us and other NSO Clients to scale the rollback to multiple rollback ID's instead of fetching several rollback ID's
We tried to roll back the configuration and it works with ID( Fixed number) “10207” but when we tried with the label “CHG234567” it’s getting failed ,so we need confirmation as whether rollback is possible only with iD (Fixed number) and not with Labels as below and also Do we have any Functionality of rollback with labels in the Future version of NSO.
admin@ncs(config)# show configuration commit list
2022-01-13 12:16:24**EnterYourText**
SNo. ID User Client Time Stamp Label Comment
~~~~ ~~ ~~~~ ~~~~~~ ~~~~~~~~~~ ~~~~~ ~~~~~~~
10207 10207 rachanti rest 2022-01-13 12:11:11 CHG234567 epg_dn: uni/tn-common/ap-ceph-storage-anp/epg-ceph-internal-01-epg, fvRsPathAtt: topology/pod-1/protpaths-1021-1022/pathep-[svl-ceph-103-0-IfPolGrp]
10206 10206 rachanti rest 2022-01-13 12:10:04
10205 10205 rachanti rest 2022-01-13 12:06:30
10204 10204 rachanti rest 2022-01-13 12:05:54 CHG1234567 epg_dn: uni/tn-common/ap-ceph-storage-anp/epg-ceph-internal-01-epg, fvRsPathAtt: topology/pod-1/protpaths-1021-1022/pathep-[svl-ceph-103-0-IfPolGrp]
10203 10203 rachanti rest 2022-01-13 12:05:20
10202 10202 rachanti rest 2022-01-13 11:59:00
10201 10201 rachanti rest 2022-01-13 11:57:29 CHG1234567 epg_dn: uni/tn-common/ap-ceph-storage-anp/epg-ceph-internal-01-epg, fvRsPathAtt: topology/pod-1/protpaths-1021-1022/pathep-[svl-ceph-103-0-IfPolGrp]
10200 10200 rachanti rest 2022-01-13 11:56:40
admin@ncs# config t
Entering configuration mode terminal
admin@ncs(config)# rollback selective 10204
admin@ncs(config)# rollback selective CHG234567
--------------------------------------^
syntax error: "CHG234567" is not a valid value.
admin@ncs(config)#
01-21-2022 07:48 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide