Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide elements from datamodel using NACM? #463

Open
temabeloglinski opened this issue Nov 3, 2023 · 3 comments
Open

How to hide elements from datamodel using NACM? #463

temabeloglinski opened this issue Nov 3, 2023 · 3 comments
Assignees
Labels

Comments

@temabeloglinski
Copy link

temabeloglinski commented Nov 3, 2023

Hi Team!
I have a question about NACM and how to hide yang configuration in cli.
My NACM config in CLIXON include this parametrs:

set nacm read-default deny
set nacm write-default deny
set nacm exec-default permit
set nacm group administrator
set nacm group administrator user-name admin
set nacm rule-list 2
set nacm rule-list 2 group administrator
set nacm rule-list 2 rule 4
set nacm rule-list 2 rule 4 module-name clixon-cli
set nacm rule-list 2 rule 4 path /oc-sys:contexts/oc-sys:context[name='sample']
set nacm rule-list 2 rule 4 access-operations read
set nacm rule-list 2 rule 4 action permit
set nacm rule-list 2 rule 8
set nacm rule-list 2 rule 8 module-name clixon-cli
set nacm rule-list 2 rule 8 path /oc-sys:contexts/oc-sys:context[name='sample']
set nacm rule-list 2 rule 8 access-operations update
set nacm rule-list 2 rule 8 action permit

If I use the command "show configuration cli", the necessary configuration blocks are hidden.
But if I use the command "set", then all the commands of the first level of the configuration are displayed, which are not in the command "show configuration cli".

How to solve this problem?

For example:

admin@cli /> set ?
context
nacm
system
admin@cli /> set

I would like to leave only the command "context" to display

@olofhagsand
Copy link
Member

Need some investigation on NACM paths + CLI.

@olofhagsand
Copy link
Member

Opened a separate issue where the CLI+NACM path errors are summarized #468

@temabeloglinski
Copy link
Author

Hi Olof!
Is there a solution for this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants