T8009: add vyconf_cli_compat for retained options of cli-shell-api #4862
+144
−76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change summary
NOTE: this requires the following PRs and an update to libvyosconfig/Makefile commit hashes before merge; until then, integration test will fail with missing executable.
vyos/vyos1x-config#57
vyos/vyconf#36
vyos/vyatta-cfg#114
Add the executable
vyconf_cli_compatfor replacement ofcli-shell-apicalls in bash completion and shell functions. The related PRs implement the edit-level operations. An example is given below. Although a simple extension on the face of it, this will allow for the remaining integration of vyconf with the CLI.Types of changes
Related Task(s)
Related PR(s)
vyos/vyos1x-config#57
vyos/vyconf#36
vyos/vyatta-cfg#114
How to test / Smoketest result
Note that the options
validateTmplPath/getCompletionEnvwill be implemented in a separate PR, hence completion at edit level is not yet available under the vyconf backend. Otherwise, behavior is reproduced under vyconf:Current behavior:
Under vyconf backend:
Checklist: