Bug 807949

Summary: RESTAPI: [RFE] Adding IP related setting when attaching network to host's nic instead of logical network
Product: [Retired] oVirt Reporter: Avi Tal <atal>
Component: ovirt-engine-apiAssignee: Michael Pasternak <mpastern>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, dyasny, iheim, srevivo, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-25 07:06:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Avi Tal 2012-03-29 08:19:33 UTC
I believe that there should be no differences between WebUI to RESTAPI when adding IP related details.

Today we need to add <ip address='' netmask='' gateway=''> to logical network in order to have an IP configuration when attaching network to nic.

This is a wrong approach!

1. attaching the same network to different hosts in the same cluster should have the same ip?
2. adding IP would be under logical network but edit IP would be under host_nic?

So the thing is, under logical network we should have only <name>, <description>, <vlan> and <stp>. 
Host_nic will be the place where we need to handle <ip> and <boot_protocol> while attaching network to host's nic and also when updating host's nic.

BTW, SetupNetworks which is under host_nics actually accept <ip> and <boot_protocol> when attaching host's nics.

Comment 1 Itamar Heim 2012-12-25 07:06:29 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.