Skip to content

Commit 44d4e94

Browse files
committed
fix: tweak virtual external config
* add 'bestpath as-path multipath relax' to have multiple ECMP routes to the vpc subnets in case of multiple external connections in the same VRF * remove the 'maximum-paths 1' constraint for the same reason * enable 'soft-reconfiguration inbound' for troubleshooting Signed-off-by: Emanuele Di Pascale <emanuele@githedgehog.com>
1 parent f6c66a3 commit 44d4e94

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pkg/hhfab/vlab_external_butane.tmpl.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ storage:
143143
!{{end}}{{range $vrfkey, $vrf := .ExternalVRFs}}
144144
router bgp {{$vrf.ASN}} vrf {{$vrfkey}}
145145
bgp log-neighbor-changes
146+
bgp bestpath as-path multipath-relax
146147
no bgp ebgp-requires-policy
147148
no bgp network import-check {{range $connNicKey, $connNic := $.ExternalNICs}}{{range $attach := $connNic.Attachments}}{{if eq $attach.VRF $vrfkey}}
148149
neighbor {{$attach.NeighborIP}} remote-as {{$attach.NeighborASN}}
@@ -154,23 +155,19 @@ storage:
154155
address-family ipv4 unicast {{range $attach := $connNic.Attachments}}{{if eq $attach.VRF $vrfkey}}
155156
neighbor {{$attach.NeighborIP}} activate
156157
no neighbor {{$attach.NeighborIP}} send-community large
158+
neighbor {{$attach.NeighborIP}} soft-reconfiguration inbound
157159
neighbor {{$attach.NeighborIP}} route-map {{$vrfkey}}In in
158160
neighbor {{$attach.NeighborIP}} route-map {{$vrfkey}}Out out {{end}}{{end}}{{if and ($connNic.Untagged) (eq $connNic.UntaggedCfg.VRF $vrfkey)}}
159161
neighbor {{$connNic.UntaggedCfg.NeighborIP}} activate
160162
no neighbor {{$connNic.UntaggedCfg.NeighborIP}} send-community large
161163
neighbor {{$connNic.UntaggedCfg.NeighborIP}} route-map {{$vrfkey}}In in
162164
neighbor {{$connNic.UntaggedCfg.NeighborIP}} route-map {{$vrfkey}}Out out{{end}}
163-
maximum-paths 1
164-
maximum-paths ibgp 1
165165
redistribute static
166166
import vrf default
167167
!
168-
address-family ipv6 unicast
169-
maximum-paths 1
170-
maximum-paths ibgp 1
171-
!
172168
!{{end}}{{end}}
173169
router bgp 1
170+
bgp bestpath as-path multipath-relax
174171
address-family ipv4 unicast
175172
redistribute static{{range $vrfkey, $vrf := .ExternalVRFs}}
176173
import vrf {{$vrfkey}}{{end}}

0 commit comments

Comments
 (0)