Problem description:
A static route is getting configured to Ubuntu VM when nexthop IP is set to its own VM IP. Due to this extra route in VM, traffic loss seen when trying to ping between different subnets.