cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
964
Views
2
Helpful
4
Replies

ned-settings cisco-iso-write-memory-setting cisco-ios-transaction-id-method config-id disappear

haofan
Level 4
Level 4

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.

4 Replies 4

gschudel
Cisco Employee
Cisco Employee

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

cpmpare.png

the new structure (obviously) matches what you're seeing at NSO CLI...

hope that helps..

Gregg

Cool, thanks for Gregg detail explanations. It work for me.

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)....

cool, got it. thanks.