Skip to content

how could i successfully parse configuration with "remove" attribute with lyd_parse_data_mem api? #2026

Closed Answered by michalvasko
lyzliyuzhi91 asked this question in Q&A
Discussion options

You must be logged in to vote

But once I use LYD_PARSE_OPAQ, I cannot parse the value of newly create/merge right?

Do not understand what you mean, what the flag does is parses invalid nodes as opaque nodes, valid nodes are parsed normally.

Why? I want to check the validation for the configuration.

You are not supposed to be validating the edit config (because it can be invalid as seen in this case) but rather the configuration after the edit is applied.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lyzliyuzhi91
Comment options

@michalvasko
Comment options

@lyzliyuzhi91
Comment options

@michalvasko
Comment options

Answer selected by lyzliyuzhi91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants