Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

request system convert-json-configuration

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
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:
  • juniper—(Default) Input configuration data is defined only by the native Junos schema.

  • openconfig—Input configuration data is defined by the OpenConfig schema or a combination of the OpenConfig and Junos schemas.

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

content_copy zoom_out_map
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.

footer-navigation