예제 #1
0
 def create_resources(t_ctx_, q_ctx, pod_, body_, _type_):
     if _type_ == t_constants.RT_NS_ROUTER:
         _type_ = t_constants.RT_ROUTER
     elif _type_ == t_constants.RT_SD_PORT:
         _type_ = t_constants.RT_PORT
     client = self._get_client(pod_['region_name'])
     return client.create_resources(_type_, t_ctx_, body_)
예제 #2
0
파일: helper.py 프로젝트: realksj/tricircle
 def create_resources(t_ctx_, q_ctx, pod_, body_, _type_):
     if _type_ == t_constants.RT_NS_ROUTER:
         _type_ = t_constants.RT_ROUTER
     elif _type_ == t_constants.RT_SD_PORT:
         _type_ = t_constants.RT_PORT
     client = self._get_client(pod_['region_name'])
     return client.create_resources(_type_, t_ctx_, body_)
예제 #3
0
파일: helper.py 프로젝트: greatbn/tricircle
 def create_resources(t_ctx_, q_ctx_, pod_, body_, _type_):
     client = self._get_client()
     return client.create_resources(_type_, t_ctx_, body_)
예제 #4
0
 def create_resources(t_ctx_, q_ctx_, pod_, body_, _type_):
     client = self._get_client()
     return client.create_resources(_type_, t_ctx_, body_)