def create_scale_faucet_config(self, t1_switches, t2_switches, access_ports):
    'Create Faucet config with stacking topology'
    setup_vlan = SETUP_VLAN
    test_vlan = TEST_VLAN
    vlans = {setup_vlan: Vlan(description='Faucet IoT'), test_vlan: Vlan(description='Orchestrated Testing')}
    t1_dps = [('nz-kiwi-t1sw%s' % (dp_index + 1)) for dp_index in range(t1_switches)]
    t2_dps = [('nz-kiwi-t2sw%s' % (dp_index + 1)) for dp_index in range(t2_switches)]
    dps = {}
    for (dp_index, dp_name) in enumerate(t1_dps):
        tap_vlan = (test_vlan if (not dp_index) else None)
        interfaces = self._build_dp_interfaces(dp_index, dps=t1_dps, t2_dps=t2_dps, tagged_vlans=[setup_vlan], tap_vlan=tap_vlan, egress_port=FAUCET_EGRESS_PORT, lacp=True)
        dps[dp_name] = self._build_datapath_config((T1_DP_ID_START + dp_index), interfaces, self._generate_dp_mac(T1_DP, dp_index))
    for (dp_index, dp_name) in enumerate(t2_dps):
        interfaces = self._build_dp_interfaces(dp_index, t1_dps=t1_dps, access_ports=access_ports, native_vlan=setup_vlan, port_acl='uniform_acl', lacp=True)
        dps[dp_name] = self._build_datapath_config((T2_DP_ID_START + dp_index), interfaces, self._generate_dp_mac(T2_DP, dp_index))
    return FaucetConfig(dps=dps, version=2, include=['uniform.yaml'], vlans=vlans)
Create Faucet config with stacking topology
def create_scale_faucet_config(self, t1_switches, t2_switches, access_ports):
    
    setup_vlan = SETUP_VLAN
    test_vlan = TEST_VLAN
    vlans = {setup_vlan: Vlan(description='Faucet IoT'), test_vlan: Vlan(description='Orchestrated Testing')}
    t1_dps = [('nz-kiwi-t1sw%s' % (dp_index + 1)) for dp_index in range(t1_switches)]
    t2_dps = [('nz-kiwi-t2sw%s' % (dp_index + 1)) for dp_index in range(t2_switches)]
    dps = {}
    for (dp_index, dp_name) in enumerate(t1_dps):
        tap_vlan = (test_vlan if (not dp_index) else None)
        interfaces = self._build_dp_interfaces(dp_index, dps=t1_dps, t2_dps=t2_dps, tagged_vlans=[setup_vlan], tap_vlan=tap_vlan, egress_port=FAUCET_EGRESS_PORT, lacp=True)
        dps[dp_name] = self._build_datapath_config((T1_DP_ID_START + dp_index), interfaces, self._generate_dp_mac(T1_DP, dp_index))
    for (dp_index, dp_name) in enumerate(t2_dps):
        interfaces = self._build_dp_interfaces(dp_index, t1_dps=t1_dps, access_ports=access_ports, native_vlan=setup_vlan, port_acl='uniform_acl', lacp=True)
        dps[dp_name] = self._build_datapath_config((T2_DP_ID_START + dp_index), interfaces, self._generate_dp_mac(T2_DP, dp_index))
    return FaucetConfig(dps=dps, version=2, include=['uniform.yaml'], vlans=vlans)