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

lib : set change errmsg in sysrepo session #15292

Closed

Conversation

Ali-aqrabawi
Copy link
Contributor

setting config change error message in sysrepo session for user visibility.

for example when using sysrepo based cli:

before the change:

pc# conf t
pc(config)# lib-frr-interface 
pc(config-lib-frr-interface)# no interface virbr0
pc(config-lib-frr-interface)# commit
[ERR] User callback failed.
commit_failed: failed to commit changes!
pc(config-lib-frr-interface)#

after the change:

pc(config-lib-frr-interface)# no interface virbr0 
pc(config-lib-frr-interface)# commit 
[ERR] only inactive interfaces can be deleted
[ERR] User callback failed.
commit_failed: failed to commit changes!
pc(config-lib-frr-interface)#

@frrbot frrbot bot added the libfrr label Feb 3, 2024
@Ali-aqrabawi Ali-aqrabawi deleted the sysrepo_set_sess_err branch February 3, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant