07-07-2018 07:37 PM - edited 03-01-2019 04:12 AM
Hi experts,
In NSO iosNedVersion: 5.x.x, NSO have below two commands, to disable write-memory and using config-id to calculate transaction-id
admin@ncs> devices device ce0 ned-settings cisco-iso-write-memory-setting disabled
admin@ncs> devices device 814f03e2-1e47-3f75-bffa-057032ae6fac ned-settings cisco-ios-transaction-id-method config-id
But in iosNedVersion: 6.0.6, I can not find these two commands.
admin@ncs(config)# devices device e8ba21ae-a0c8-344e-af08-32ec1dc79be8 ned-settings ?
Possible completions:
cisco-ios cisco-ios ned-settings
use-confirmed-commit Control usage of confirmed commit
use-private-candidate Control usage of the private candidate
use-startup Control usage of the startup datastore
use-transaction-id Control usage of fetching the transaction id
use-validate Control usage of validate
Who can tell me what is similar command both cisco-iso-write-memory-setting and cisco-iso-transaction-id-method ?
Thanks.
07-08-2018 04:03 PM
Hi Hao
It looks like you were just at the right place... but didn't read the output ?
Notice in your output of "devices device xxxx ned-settings ?" is says "cisco-ios cisco-ios ned-settings"...
But you didn't seem to go there...
So i did for you
admin@ncs% set devices device ios0 ?
Possible completions:
ned-settings - Control which device capabilities NCS uses
netconf-notifications - NETCONF notifications from the device
admin@ncs% set devices device ios0 ned-settings ?
Description: Control which device capabilities NCS uses
Possible completions:
cisco-ios - cisco-ios ned-settings
use-confirmed-commit - Control usage of confirmed commit
(skip...)
admin@ncs% set devices device ios0 ned-settings cisco-ios ?
Description: cisco-ios ned-settings
Possible completions:
api - Configure API (new API features/changes)
(skip...)
read - Settings used when reading from device
write - Settings used when writing to device
admin@ncs% set devices device ios0 ned-settings cisco-ios write ?
Description: Settings used when writing to device
Possible completions:
config-output-max-retries - Max number of retries (one per second) when sending config command to device
config-warning - Device warning regexp entry list
device-output-delay - Delay in milliseconds after each config command output to the device
inject-answer - Inject answer to question from device received when applying config (commit phase)
inject-command - Inject command (before or after) specified config-line upon commit
memory-method - Change method to write config to memory
memory-setting - Configure how and when an applied config is saved to persistent memory on the device
number-of-lines-to-send-in-chunk - Number of commands lines in a chunk sent by the NED to the device.
replace-commit - Replace (or filter) config when writing to device
admin@ncs%
All good! (but with a slightly different format)
One other comment - it also helps to "look inside the NED" if you have questions. For example, in searching the YANG modules, you can see that the "ned-settings" are in the yang file "tailf-ned-cisco-ios-meta.yang" ...
However, as you've discovered. the structure of this yang module appears to have changed from 5.x to 6.x
the new structure (obviously) matches what you're seeing at NSO CLI...
hope that helps..
Gregg
07-08-2018 06:57 PM
Cool, thanks for Gregg detail explanations. It work for me.
07-09-2018 10:09 AM
cool!
also found this in Cisco IOS NED change file for NED 6.0
Please be advised that Cisco IOS NED 6.0 is now available
for download from the Tail-f delivery server.
(skip)....
Enhancements:
- New major release due to ned-settings API CHANGE.
- API CHANGE:
Due to NED standardisation, moved the YANG path to all ned-settings
not residing under cisco-ios container. See README for new paths.
Upgrade code in UpgradeNedSettings.java updates to new paths in CDB.
(CISCOIOS-985)
(skip)....
07-09-2018 06:01 PM
cool, got it. thanks.
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