• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

psafont / xen-api / 19139669673

06 Nov 2025 02:26PM UTC coverage: 80.459% (+0.09%) from 80.368%
19139669673

push

github

psafont
network_utils: Allow adding a gateway that doesn't match any interface prefix

Currently when this happens, the ip command fails, but it's ignored, resulting
in nothing happening.

The onlink option allows to avoid the error and set the route anyway. This is
useful on cases where a cloud provider controls the gateway of the users'
hosts.

This argument was added unconditionally to debian's ifupdown in 2016 to avoid
this issue:
https://salsa.debian.org/debian/ifupdown/-/commit/8b7bca959

This issue was reported by users, as well as in
https://xcp-ng.org/forum/topic/11160/off-subnet-off-net-gateway-configuration-routing-table-fails-with-xe-network-param-set

Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>

3504 of 4355 relevant lines covered (80.46%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.75
/python3/tests/test_perfmon.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc