def create_flat_faucet_config(self, num_switches, num_access_ports):
    'Create Faucet config with flat topology'
    setup_vlan = SETUP_VLAN
    switches = [('sw%s' % (sw_num + 1)) for sw_num in range(num_switches)]
    dps = {}
    vlans = {setup_vlan: Vlan(description='Faucet IoT')}
    for (sw_num, sw_name) in enumerate(switches):
        interfaces = self._build_dp_interfaces(sw_num, dps=switches, egress_port=FAUCET_EGRESS_PORT, tagged_vlans=[setup_vlan], access_ports=num_access_ports, native_vlan=setup_vlan, port_acl='uniform_acl', access_port_start=FLAT_ACCESS_PORT_START, lacp=True)
        dps[sw_name] = self._build_datapath_config((FLAT_DP_ID_START + sw_num), interfaces, self._generate_dp_mac(T2_DP, sw_num))
    return FaucetConfig(dps=dps, version=2, include=['uniform.yaml'], vlans=vlans)
Create Faucet config with flat topology
def create_flat_faucet_config(self, num_switches, num_access_ports):
    
    setup_vlan = SETUP_VLAN
    switches = [('sw%s' % (sw_num + 1)) for sw_num in range(num_switches)]
    dps = {}
    vlans = {setup_vlan: Vlan(description='Faucet IoT')}
    for (sw_num, sw_name) in enumerate(switches):
        interfaces = self._build_dp_interfaces(sw_num, dps=switches, egress_port=FAUCET_EGRESS_PORT, tagged_vlans=[setup_vlan], access_ports=num_access_ports, native_vlan=setup_vlan, port_acl='uniform_acl', access_port_start=FLAT_ACCESS_PORT_START, lacp=True)
        dps[sw_name] = self._build_datapath_config((FLAT_DP_ID_START + sw_num), interfaces, self._generate_dp_mac(T2_DP, sw_num))
    return FaucetConfig(dps=dps, version=2, include=['uniform.yaml'], vlans=vlans)