Skip to content

Commit d3e5d98

Browse files
committed
network: fix route for own subnet
Before the fix, the following routes were created for traffic to ovirtmgmt: default via 10.0.10.1 dev ovirtmgmt proto static 10.0.10.0/24 via 10.0.10.5 dev ovirtmgmt proto static Where 10.0.10.5 is the IP address of the server itself. While this seems to work fine on CentOS 9, this breaks traffic from the own subnet on CentOS 10. Therefor we replace it with the proper route: 10.0.10.0/24 dev ovirtmgmt proto kernel scope link src 10.0.10.5 metric 425 A question for this was also opened on the nmstate repository [1]. 1: nmstate/nmstate#3003 Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
1 parent a99350e commit d3e5d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vdsm/network/nmstate/route.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def routes_state(self):
225225
),
226226
_create_route_state(
227227
self._next_hop,
228-
self._ipaddr,
228+
"0.0.0.0",
229229
self._network,
230230
table_id=self._table_id,
231231
),

0 commit comments

Comments
 (0)