Route network address is not valid

Please help with the problem of adding routes:

There were 3 routes

10.97.100.0/24
10.97.101.0/24

When trying to add

10.97.102.0/24

The error “Route network address is not valid” appears

This route is specified on the network equipment.

For the test I deleted the route

10.97.101.0/24

then tried to add it again, and the error “Route network address is not valid” appeared

At the same time tried to add the route 192.168.25.0.0/24 and it worked without problems

I can’t reproduce this issue. The only error that should return that message is if the Python ipaddress library ipaddress.ip_network(network_address) returns an exception.