コード例 #1
0
ファイル: helper.py プロジェクト: daespinel/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_)
コード例 #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
ファイル: helper.py プロジェクト: daespinel/tricircle
 def create_resources(t_ctx_, q_ctx_, pod_, body_, _type_):
     client = self._get_client()
     return client.create_resources(_type_, t_ctx_, body_)