Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add route feature #154

Closed
3 tasks done
sufuf3 opened this issue Jul 24, 2018 · 0 comments · Fixed by #168
Closed
3 tasks done

Add add route feature #154

sufuf3 opened this issue Jul 24, 2018 · 0 comments · Fixed by #168
Assignees

Comments

@sufuf3
Copy link
Contributor

sufuf3 commented Jul 24, 2018

Dear All,
這邊先放我 trace code 的結果,整理一下我要做的事情。

流程

CreatePod -> generateNetwork -> generateInitContainer -> generateClientCommand -> Network-controller client -> Network-controller server 建 pod 的網路設定包含(config interface, add route)

相關 Entity: PodNetwork

粗體的是要加 code 的地方


文件調整

https://github.com/linkernetworks/vortex/blob/develop/API.md#create-pod


client option

  • network-controller client 需要額外傳給 network-controller server 的參數:
    • dstCIDR: 一定要餵值,但要判斷值正不正確。string、要符合 CIDR 格式(network-controller server 已經完成)。
    • gwIP: 可以空值
  • 設計
    • 第一版:一個指令、一個 interface、一個 route ("-r 239.0.0.0/4 -gw 0.0.0.0" or "-r 239.0.0.0/4")

Todolist

@sufuf3 sufuf3 self-assigned this Jul 24, 2018
@sufuf3 sufuf3 changed the title Add add route features Add add route feature Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
sufuf3 added a commit to linkernetworks/network-controller that referenced this issue Jul 24, 2018
@sufuf3 sufuf3 added the WIP label Jul 24, 2018
sufuf3 added a commit that referenced this issue Jul 25, 2018
sufuf3 added a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand
sufuf3 added a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand
sufuf3 added a commit that referenced this issue Jul 25, 2018
sufuf3 added a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand
hwchiu pushed a commit that referenced this issue Jul 25, 2018
hwchiu pushed a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand
sufuf3 added a commit that referenced this issue Jul 25, 2018
sufuf3 added a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand

Signed-off-by: sufuf3 <[email protected]>
hwchiu pushed a commit that referenced this issue Jul 25, 2018
hwchiu pushed a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand

Signed-off-by: sufuf3 <[email protected]>
John-Lin pushed a commit that referenced this issue Jul 25, 2018
John-Lin pushed a commit that referenced this issue Jul 25, 2018
For init container, add add route in generateClientCommand

Signed-off-by: sufuf3 <[email protected]>
sufuf3 added a commit that referenced this issue Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants