Inter-function anomaly analysis for correct SDN/NFV deployment