Пример #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
 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
 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_)