class ACL implements IACLService, IFloodlightModule, IDeviceListener {

	@Override
	public void deviceAdded(IDevice device) {
		SwitchPort[] switchPort = device.getAttachmentPoints(); 
		if (switchPort.length == 0) {
                        //Device manager does not yet know an attachment point for a device (Bug Fix) 
                        return;
                }
		IPv4Address[] ips = device.getIPv4Addresses();
		if (ips.length == 0) {
			// A new no-ip device added
			return;
		}

		String dpid = HexString.toHexString(switchPort[0].getSwitchDPID()
				.getLong());
		String ip = IPv4.fromIPv4Address(ips[0].getInt());
		logger.debug("AP(dpid:{},ip:{}) is added", dpid, ip);

		AP ap = new AP(ip, dpid);
		apManager.addAP(ap);
		processAPAdded(ap);
	}

}