Red Hat Bugzilla – Bug 842137
Backend should allow gateway for non-management networks if it was reported by host
Last modified: 2016-02-10 14:47:01 EST
Description of problem:
If the gateway for a non-management network was reported by the host, it will be present to the user via the rest-api.
The backend should allow getting unmodified gateway from the clients, without failing the command with NETWORK_ATTACH_ILLEGAL_GATEWAY.
In addition, it should not allow receiving 0.0.0.0 as a gateway if it wasn't reported from the host as a gateway for non-management network.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Update nic via rest-api with gateway set to 0.0.0.0 for non management network.
2. Verify the host reports no gateway for that network
3. post the change
Updaing the nic should fail with NETWORK_ATTACH_ILLEGAL_GATEWAY can-do-action message
suggested patch: http://gerrit.ovirt.org/#/c/6585/
The backend will not store the gateway for non-management networks, therefore nor rest-api nor webadmin should encounter the error above. The client
An attempt to set gateway for non-management networks will fail with can-do-action message: NETWORK_ATTACH_ILLEGAL_GATEWAY