Skip to content

Commit

Permalink
add support for Calico BGPPeer sourceAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkotetsu committed Dec 15, 2021
1 parent 4daa824 commit 929d372
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/calico_peer_example/new-york.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# peers:
# - router_id: "10.99.0.34"
# as: "65xxx"
# sourceaddress: "None"
# - router_id: "10.99.0.35"
# as: "65xxx"
# sourceaddress: "None"

# loadbalancer_apiserver:
# address: "10.99.0.44"
Expand Down
2 changes: 2 additions & 0 deletions docs/calico_peer_example/paris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# peers:
# - router_id: "10.99.0.2"
# as: "65xxx"
# sourceaddress: "None"
# - router_id: "10.99.0.3"
# as: "65xxx"
# sourceaddress: "None"

# loadbalancer_apiserver:
# address: "10.99.0.21"
Expand Down
3 changes: 2 additions & 1 deletion roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@
"spec": {
"asNumber": "{{ item.as }}",
"node": "{{ inventory_hostname }}",
"peerIP": "{{ item.router_id }}"
"peerIP": "{{ item.router_id }}",
"sourceAddress": "{{ item.sourceaddress|default('UseNodeIP') }}"
}}
register: output
retries: 4
Expand Down

0 comments on commit 929d372

Please sign in to comment.