Description of problem: When non-management network is set with static-ip and subnet mask via SetupNetworks, the gateway is being set with "0.0.0.0" rather empty (null). The backend allows reciving that value, therefore the result is a network script containing that record. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Using SetupNetworks, create a network on the host and set its boot protocol to static ip. 2. Provide ip and subnet mask and confirm the dialog. Actual results: The record GATEWAY=0.0.0.0 appears in the network script: [root@myhost02 network-scripts]# cat ifcfg-testnet DEVICE=testnet TYPE=Bridge ONBOOT=yes IPADDR=10.10.10.10 NETMASK=255.255.255.0 GATEWAY=0.0.0.0 DELAY=0 NM_CONTROLLED=no Expected results: No GATEWAY record should appear. [root@myhost02 network-scripts]# cat ifcfg-testnet DEVICE=testnet TYPE=Bridge ONBOOT=yes IPADDR=10.10.10.10 NETMASK=255.255.255.0 DELAY=0 NM_CONTROLLED=no Additional info:
Commit-id: bd9aa2adcca10d6e61585e68d0822949d1a888f9 The change is made on backend side. Since backend doesn't report any gateway for non-management network, the webadmin will not return any value for it.
Verified on vdsm-4.9.6-24.0.el6_3.x86_64. cat /etc/sysconfig/network-scripts/ifcfg-net1 DEVICE=net1 TYPE=Bridge ONBOOT=yes IPADDR=1.1.1.1 NETMASK=255.255.255.0 DELAY=0 NM_CONTROLLED=no STP=no