request system convert-json-configuration
Syntax
request system convert-json-configuration filename output-filename output-filename <origin-schema schema>
Description
Convert the JSON configuration data in the specified input file so that list keys precede any other siblings within a list entry as required by the Junos schema. The converted data is saved in the specified output file in the current working directory. The command does not emit output when the conversion is successful.
If the input file includes only OpenConfig configuration statements, or if it includes both
OpenConfig and Junos configuration statements, include the origin-schema
openconfig
command option to specify the schema.
Options
filename |
Path to the input JSON configuration file. |
origin-schema schema | (Optional) The schema that defines the input configuration data. Specify one of the following:
|
output-filename output-filename | Filename for the output JSON configuration file. The destination path is the current working directory, which default's to the user's home directory. |
Required Privilege Level
maintenance
Sample Output
request system convert-json-configuration
user@host> request system convert-json-configuration config.json output-filename config-converted.json origin-schema openconfig user@host>
Release Information
Command introduced in Junos OS Release 22.1R1 and Junos OS Evolved Release 22.1R1.