[Kimchi-devel] [RFC] [Kimchi] Add support to edit virtual networks

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Wed Apr 6 11:53:01 UTC 2016


+1
Reviewed-by: Paulo Vital <pvital at linux.vnet.ibm.com>

On Apr 05 06:02PM, Lucio Correia wrote:
> Edit virtual network feature
> 
> Pre-requisite:
> - Virtual network is stopped
> - Virtual network "default" is not editable
> 
> *** BACKEND ***
> 
> ### Resource: Network
> 
> **URI:** /plugins/kimchi/networks/*:name*
> 
> **Methods:**
> 
> * **UPDATE**: Update a Network
>     * name: The name of the Network
>     * subnet: Network segment in slash-separated format with ip address and
> prefix
>     * dhcp: DHCP services on the virtual network is enabled.
>         * start: start boundary of a pool of addresses to be provided to
> DHCP clients.
>         * end: end boundary of a pool of addresses to be provided to DHCP
> clients.
>     * interfaces: An array of bridge network interfaces that belongs to this
> network
>                   All traffic on this network will be bridged through the
> first
>                   interface. The interface is a bridge or ethernet/bonding
> device.
>     * vlan ID
> 
> Not all attributes are required for all networks types.
> 
> 
> *** FRONTEND ***
> 
> * Add new option Edit to Actions menu under Virtualization/Network tab,
> enabled only for stopped networks
> * When clicked, this option will open a new window for editing that virtual
> network, with the following fields. Based on network type, some of below
> fields may be disabled:
> 
> Type: just a label describing the network type, not changeable.
> Name: all types of virtual network can be renamed
> Interfaces: attach/detach interfaces (enabled for VEPA) or change interface
> (for macvtap, bridged)
> Subnet/DHCP range: two IP fields: start, end (enabled for NAT, isolated)
> VLAN id: integer field (enabled for bridged networks)
> 
> -- 
> Lucio Correia
> Software Engineer
> IBM LTC Brazil
> 
> _______________________________________________
> Kimchi-devel mailing list
> Kimchi-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/kimchi-devel
> 

-- 
Paulo Ricardo Paz Vital
Linux Technology Center, IBM Systems
http://www.ibm.com/linux/ltc/




More information about the Kimchi-devel mailing list