Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSON file can be used for generating configuration for a group of switches with the file suffix “.json”. You can refer to document Staging a Switch for Automated Deployment in AmpCon to see the usage of JSON file.

The template of a JSON file is shown below:{
    

Code Block
{
    "sn":

...

 ["

...

TEST-SN-1",

...

 "

...

TEST-SN-2"],

...


    "hardware_model":

...

 "as4610_54p",
    "location":

...

 "

...

Beijing",

...


    "global_config_name":

...

 "

...

2022-

...

6-

...

17-glob-

...

as4610_54p-test",
    "site_template_name": ["

...

test-template-1", "test-template-2"],

...


    "agent_config":

...

 {

...

},
    "vpn": true,
    "retrieve_config": true,
    "default_config_param": {
       

...

 "test-template-1": {
            "address": "1.1.1.1",
            "interface": "1",
            "prefix_length": "4",
            "vif": "1"
        },
        "test-template-2": {
            "classifier": "4"
        }
    },
    "unique_config_param": {
        "TEST-SN-2": {
            "test-template-1": {
                "address": "111.2.2.2"
            },
            "test-template-2": {
                "classifier": "5"
            }
        }
    }
}