add support for Calico BGPPeer sourceAddress (#8306)
This commit is contained in:
parent
fdc5d7458f
commit
c59407f105
3 changed files with 6 additions and 1 deletions
|
@ -2,8 +2,10 @@
|
||||||
# peers:
|
# peers:
|
||||||
# - router_id: "10.99.0.34"
|
# - router_id: "10.99.0.34"
|
||||||
# as: "65xxx"
|
# as: "65xxx"
|
||||||
|
# sourceaddress: "None"
|
||||||
# - router_id: "10.99.0.35"
|
# - router_id: "10.99.0.35"
|
||||||
# as: "65xxx"
|
# as: "65xxx"
|
||||||
|
# sourceaddress: "None"
|
||||||
|
|
||||||
# loadbalancer_apiserver:
|
# loadbalancer_apiserver:
|
||||||
# address: "10.99.0.44"
|
# address: "10.99.0.44"
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
# peers:
|
# peers:
|
||||||
# - router_id: "10.99.0.2"
|
# - router_id: "10.99.0.2"
|
||||||
# as: "65xxx"
|
# as: "65xxx"
|
||||||
|
# sourceaddress: "None"
|
||||||
# - router_id: "10.99.0.3"
|
# - router_id: "10.99.0.3"
|
||||||
# as: "65xxx"
|
# as: "65xxx"
|
||||||
|
# sourceaddress: "None"
|
||||||
|
|
||||||
# loadbalancer_apiserver:
|
# loadbalancer_apiserver:
|
||||||
# address: "10.99.0.21"
|
# address: "10.99.0.21"
|
||||||
|
|
|
@ -418,7 +418,8 @@
|
||||||
"spec": {
|
"spec": {
|
||||||
"asNumber": "{{ item.as }}",
|
"asNumber": "{{ item.as }}",
|
||||||
"node": "{{ inventory_hostname }}",
|
"node": "{{ inventory_hostname }}",
|
||||||
"peerIP": "{{ item.router_id }}"
|
"peerIP": "{{ item.router_id }}",
|
||||||
|
"sourceAddress": "{{ item.sourceaddress|default('UseNodeIP') }}"
|
||||||
}}
|
}}
|
||||||
register: output
|
register: output
|
||||||
retries: 4
|
retries: 4
|
||||||
|
|
Loading…
Reference in a new issue