]> git.ipfire.org Git - thirdparty/libvirt.git/commit
PHYP: Adding network interface
authorEduardo Otubo <otubo@linux.vnet.ibm.com>
Mon, 28 Mar 2011 20:07:20 +0000 (17:07 -0300)
committerEric Blake <eblake@redhat.com>
Wed, 13 Apr 2011 17:18:22 +0000 (11:18 -0600)
commit67eecd1610d9996cc7f776e0be12d70cec0fe258
treea4f18a202c87dc6595f4df4cb74ed81c98e1f251
parent30c551ab4e64f02f2cfb148fcac8658b018d31cb
PHYP: Adding network interface

This is the implementation of the previous patch now using virInterface*
API. Ended up this patch got much more simpler, smaller and easier to
review. Here is some details:

  * MAC size and interface name are fixed due to specifications on HMC,
    both are created automatically and CAN'T be specified from user. They
    have the following format:

     * MAC: 122980003002
     * Interface name: U9124.720.067BE8B-V3-C0

  * I did replaced all the |grep|sed following the comments Eric Blake
    did on the last patch.

  * According to my last email, It's not possible to create a network
    interface without assigning it to a specific lpar. Then, I am using
    this very minimalistic XML file for testing:

     <interface type='ethernet' name='LPAR01'>
     </interface>

    In this file I am using "name" as the lpar name which I am going to
    assign the new network interface. I couldn't find a better way to
    refer to it. Comments are welcome.

  * Regarding the fact I am sleeping one second waiting for the HMC to
    complete creation of the interface, I don't have means to check
    if the whole process is done. All I do is execute a command, wait
    until is complete (which is not enough in this case) check
    the return and the exit status. The process of actually creating
    a networking interface seems to take a little longer than just the
    return of the ssh control.
src/phyp/phyp_driver.c