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:

{
    "sn": ["TW000WH7DNT000490090""PICA8_TEST"],
    "hardware_model""N3248PXE-ON",
    "location""Palo Alto",
    "global_config_name""2020-11-24-glob-N3248PXE-ON-V1",
    "site_template_name":  ["N3248PXE-ON-Nov20"],
    "agent_config": {
    },
    "default_config_param": {
        "Default_gateway""192.168.42.1",
        "Data_VLAN_id""10",
        "Voice_VLAN_id""800"
    },
    "unique_config_param": {
        "TW000WH7DNT000490090": {
            "Hostname""P8-Access-BR-1-SW-1",      
            "Management_IP_Address_Mask""192.168.42.169/24",
            "Data_VLAN_IP_Address_Mask""192.168.43.169/24"
        },
        "PICA8_TEST": {
            "Hostname""P8-Access-BR-1-SW-2",      
            "Management_IP_Address_Mask""192.168.42.170/24",
            "Data_VLAN_IP_Address_Mask""192.168.43.170/24"        
        }
    }
}