def create_environment_vip(environment_vip): try: env = EnvironmentVip() env.create_v3(environment_vip) except Exception, e: raise NetworkAPIException(str(e))