class ACL implements IACLService, IFloodlightModule, IDeviceListener {

	@Override
	public void deviceAdded(IDevice device) {
		SwitchPort[] switchPort = device.getAttachmentPoints();
		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.info("New AP added. [dpid:" + dpid + " ip:" + ip + "]");

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

}