+ if config_dic['network_type'] == 'ovs' \
+ and config_dic['ovs_controller_ip'] == 'localhost' \
+ and not (config_dic['mode'] == 'test' or config_dic['mode'] == "OF only"):
+
+ error_msg = "Error: invalid value '{}' for ovs_controller_ip at {}. " \
+ "Use a valid IP address".format(config_dic['ovs_controller_ip'], config_file)
+
+ print ("!! {} ".format(error_msg))
+ logger.error(error_msg)
+ exit(1)
+