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

XML editing workflow using netconfd #2

Open
torokati44 opened this issue Sep 19, 2018 · 1 comment
Open

XML editing workflow using netconfd #2

torokati44 opened this issue Sep 19, 2018 · 1 comment

Comments

@torokati44
Copy link
Collaborator

I'm trying to edit the configuration in topology-with-config.xml by loading it into netconfd as --startup configuration.

When netconfd starts up, I get an error saying Error: load startup config failed (max-access exceeded).

This is quite strange to me, since I have both --superuser='$USER' and --access-control=off as parameters, and I see no mention of any access restrictions in the file. And I'm just trying to edit a single .xml file, what do I need special access for anyways?

If instead I'm loading either topology.xml, config-host0.xml, or config-br0.xml, it starts up just fine, and I can inspect and modify it with yangcli. And I can also inspect the configuration of my computer.

My guess is that netconfd actually tries to set up some real nodes on the real network with the configuration of the XML, and it obviously can't do that.

Is there a "sandbox" or "dry-run" mode in netconfd that effectively turns it into a glorified XML editor (with YANG conformance checking), completely isolating the configuration from "reality" (the host it runs on, and its network)? Or is there any other tool I can use for this purpose?

@vlvassilev
Copy link
Owner

Hi,

You are right. The problem is actually caused by a bug that happens with all configurations containing anyxml (e.g. /networks/network/node/config is anyxml). I will fix that and then close the issue. We usually run netconfd on devices and not NMS (where topology with node configurations is relevant).

Vladimir

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

No branches or pull requests

2 participants