Browse Source
allow overriding calico peers names and avoid ipv6 naming issues (#7591)
pull/7606/head
Cristian Calin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/network_plugin/calico/tasks/install.yml
|
|
@ -227,7 +227,7 @@ |
|
|
|
{"apiVersion": "projectcalico.org/v3", |
|
|
|
"kind": "BGPPeer", |
|
|
|
"metadata": { |
|
|
|
"name": "global-{{ item.router_id }}" |
|
|
|
"name": "global-{{ item.name | default(item.router_id|replace(':','-')) }}" |
|
|
|
}, |
|
|
|
"spec": { |
|
|
|
"asNumber": "{{ item.as }}", |
|
|
@ -381,7 +381,7 @@ |
|
|
|
{"apiVersion": "projectcalico.org/v3", |
|
|
|
"kind": "BGPPeer", |
|
|
|
"metadata": { |
|
|
|
"name": "{{ inventory_hostname }}-{{ item.router_id }}" |
|
|
|
"name": "{{ inventory_hostname }}-{{ item.name | default(item.router_id|replace(':','-')) }}" |
|
|
|
}, |
|
|
|
"spec": { |
|
|
|
"asNumber": "{{ item.as }}", |
|
|
|