ansible-network / resource_module_models

Models used for building and maintaining resource modules
GNU General Public License v3.0
20 stars 59 forks source link

Non Config Data in Ansible NRM Module #160

Open AneesSaifudeen opened 2 years ago

AneesSaifudeen commented 2 years ago

Can we define non-configurable attributes in the NRM model ? if Yes, how do we achieve the same.
If No, is NRM scope is restricted only to configurable attributes ?

AneesSaifudeen commented 2 years ago

Hi, Could you please respond. Awaiting response. Thanks.

NilashishC commented 2 years ago

Hi @AneesSaifudeen. Apologies for the delay. Could you please clarify and give an example on what you mean by non-configurable items? Each Resource Module corresponds to a well-defined network resource which can be configured and managed (in an idempotent way) by inspecting the running-configuration (or its equivalent) from the target device and pushing updates as needed and as such, are only supposed to deal with configurable attributes.

AneesSaifudeen commented 2 years ago

Hi @NilashishC , Thanks for your response! By non-configurable attributes, I meant the Read-Only (config false attributes in yang model) attributes, which will not be displayed by the running-config CLI command.