Holistic framework for AI in critical network infrastructures