Browse Source

add support for Calico BGPPeer sourceAddress (#8306)

pull/8321/head
kakkotetsu 2 years ago
committed by GitHub
parent
commit
c59407f105
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions
  1. 2
      docs/calico_peer_example/new-york.yml
  2. 2
      docs/calico_peer_example/paris.yml
  3. 3
      roles/network_plugin/calico/tasks/install.yml

2
docs/calico_peer_example/new-york.yml

@ -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"

2
docs/calico_peer_example/paris.yml

@ -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"

3
roles/network_plugin/calico/tasks/install.yml

@ -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

Loading…
Cancel
Save