Energy-aware Resource Adaptation for Next Generation Network Equipment