network: update API.md

define the new API of network

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network: update controller

define Networs collection and Network resource.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network: generate network xml and testcast for it

define a network xml template.

info: http://libvirt.org/formatnetwork.html

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network: update model

list netwoks
lookup network
create/delete network
activate/deactivate network
set autostart network

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network: update mockmodel

list netwoks
lookup network
create/delete network
activate/deactivate network
set autostart network

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network: update test case

test model and rest

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network improvement: support macvtap network

as former discussion,
If an ethernet device is selected, then macvtap network will be used
automatically.
If a bridged device is selected, then the bridge network will be used as-is.

But unlike other VM manager tools, if the user want to create a macvtap network,
he must create a macvtap network base on an ethernet.
We do not allow the user create VM base on an ethernet directly.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network improvement: find a available network address

This is patch is a temporary patch.
But it is useful for UI design.

Will consider use netaddr to find a available network address.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
network improvement: set default address for isolate and nat network

Choose one from the private network addresses pool.
Also set the the dhcp range.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
interface: some new utils to get the interface info

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
interface: Update API.md

wiki:
https://github.com/kimchi-project/kimchi/wiki/Create-guest-network#basic-host-interface-apir11s1

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
interface: update controller, add collection and resource definition

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
interface: Add model support for interface definition

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
List/Start/Stop Network

This patch include UI files for list, start, stop networks.
Added network.html, network.js, network.css for network content.
Added network tab in kimchi-ui.html
Added translations in .po files

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>
create/delete network

Add network creation and deletion UI and translations

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>