Versions Compared

Key

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

...

Code Block
{
    "sn": ["TEST-SN-1", "TEST-SN-2"],
    "hardware_model": "as4610_54p",
    "location": "Beijing",
    "global_config_name": "test_global_config_name",
    "site_template_name": ["test_template_name"],
    "agent_config":{
        "enable": true,
        "vpn_enable": true,
        "server_domain": "pica8.com",
        "inband_native_vlan": "4094",
        "server_vpn_host": "vpn.pica8.com",
        "inband_vlan": "4094",
        "server_hostname_prefix": "ac",
        "inband_lacp": true,
        "uplink_ports": "te-1/1/49,te-1/1/50",
        "uplink_speed": "1000"
    },
    "vpn": true,
    "retrieve_config": true,
    "default_config_param": {
       "test_template_name": {
         "vlan_id": 100
        }
    },
    "unique_config_param":{
        "TEST-SN-2":{
          "test_template_name": {
            "vlan_id": 200
            }
        }
    }
}

The configuration parameters in the template correspond to the configuration parameters in the “Switch Full Config Edit” interface,

...

Code Block
{
    "sn": ["TEST-SN-1", "TEST-SN-2"],
    "hardware_model": "as4610_54p",
    "location": "Beijing",
    "global_config_name": "2020-11-24-glob-as4610_54p-V1",
    "site_template_name": ["as4610_54p-Nov20"],
    "agent_config": {
    },
    "default_config_param": {
       "as4610_54p-Nov20": {         
            "VLAN_id": 100,
            "VLAN_name": "vlan_100"
        }
    },
    "unique_config_param": {
        "TEST-SN-2": {
          "as4610_54p-Nov20": {
            "VLAN_ID": 200
            }
        }        
    }
}

Pay attention to the following points when configuring the JSON file:

...