'Register two L3 agents and two DHCP agents.'

def _register_agent_states(self, lbaas_agents=False):

    l3_hosta = helpers._get_l3_agent_dict(L3_HOSTA, constants.L3_AGENT_MODE_LEGACY)
    l3_hostb = helpers._get_l3_agent_dict(L3_HOSTB, constants.L3_AGENT_MODE_LEGACY)
    dhcp_hosta = helpers._get_dhcp_agent_dict(DHCP_HOSTA)
    dhcp_hostc = helpers._get_dhcp_agent_dict(DHCP_HOSTC)
    helpers.register_l3_agent(host=L3_HOSTA)
    helpers.register_l3_agent(host=L3_HOSTB)
    helpers.register_dhcp_agent(host=DHCP_HOSTA)
    helpers.register_dhcp_agent(host=DHCP_HOSTC)
    res = [l3_hosta, l3_hostb, dhcp_hosta, dhcp_hostc]
    if lbaas_agents:
        lbaas_hosta = {'binary': 'neutron-loadbalancer-agent', 'host': LBAAS_HOSTA, 'topic': 'LOADBALANCER_AGENT', 'configurations': {'device_drivers': ['haproxy_ns']}, 'agent_type': constants.AGENT_TYPE_LOADBALANCER}
        lbaas_hostb = copy.deepcopy(lbaas_hosta)
        lbaas_hostb['host'] = LBAAS_HOSTB
        callback = agents_db.AgentExtRpcCallback()
        callback.report_state(self.adminContext, agent_state={'agent_state': lbaas_hosta}, time=datetime.utcnow().strftime(constants.ISO8601_TIME_FORMAT))
        callback.report_state(self.adminContext, agent_state={'agent_state': lbaas_hostb}, time=datetime.utcnow().strftime(constants.ISO8601_TIME_FORMAT))
        res += [lbaas_hosta, lbaas_hostb]
    return res
