Page MenuHomeVyOS Platform

XML op-mode generation scripts silently discard XML nodes
Closed, ResolvedPublicBUG

Description

Consider those two XML definitions:

both "generate" the file /opt/vyatta/share/vyatta-op/templates/show/protocols/node.def bot it is not populated with the help string from show-protocols-bfd.xml but rather is a simply, empty placeholder to entertain the vyatta-cfg backend.

I expect that on such a "conflict" two XML files generate the same node, the one which has populated the help string wins. Right now the only way to solve this is to copy the same <help> node to every file which is in the path of this node generation (bad).

Details

Version
1.3-rolling-202006060117
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

c-po assigned this task to dmbaturin.

Idea: do not generate empty node.def file if there is no <properties> statement.

erkin set Issue type to Internal change (not visible to end users).Aug 30 2021, 5:44 AM
erkin removed a subscriber: Global Notifications.