Appendix E: Template of JSON File

Appendix E: Template of JSON File


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": ["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"             }         }     } }

 

 

 

Copyright © 2025 Pica8 Inc. All Rights Reserved.