File tree Expand file tree Collapse file tree
internal/app/machined/pkg/runtime/v1alpha1/platform/openstack Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,6 +275,12 @@ func (o *Openstack) ParseMetadata(
275275 return nil , fmt .Errorf ("failed to parse gateway ip: %w" , err )
276276 }
277277
278+ priority := uint32 (network .DefaultRouteMetric )
279+
280+ if family == nethelpers .FamilyInet6 {
281+ priority *= 2
282+ }
283+
278284 route := network.RouteSpecSpec {
279285 ConfigLayer : network .ConfigPlatform ,
280286 Gateway : gw ,
@@ -283,7 +289,7 @@ func (o *Openstack) ParseMetadata(
283289 Protocol : nethelpers .ProtocolStatic ,
284290 Type : nethelpers .TypeUnicast ,
285291 Family : family ,
286- Priority : network . DefaultRouteMetric ,
292+ Priority : priority ,
287293 }
288294
289295 route .Normalize ()
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ routes:
9999 gateway : 2000:0:100:2fff:ff:ff:ff:ff
100100 outLinkName : eth0
101101 table : main
102- priority : 1024
102+ priority : 2048
103103 scope : global
104104 type : unicast
105105 flags : " "
You can’t perform that action at this time.
0 commit comments