Exemplo n.º 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_)
Exemplo n.º 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_)
Exemplo n.º 3
0
 def create_resources(t_ctx_, q_ctx_, pod_, body_, _type_):
     client = self._get_client()
     return client.create_resources(_type_, t_ctx_, body_)
Exemplo n.º 4
0
 def create_resources(t_ctx_, q_ctx_, pod_, body_, _type_):
     client = self._get_client()
     return client.create_resources(_type_, t_ctx_, body_)