def deleteSharedIpGroup():
    """
    Delete a shared ip group by id
    """
    print "Shared IP Group id to delete: "
    name = getSharedIpGroupId()
    ipg = sharedIpGroupManager.find(name)
    if not ipg:
        print "IP Group not found"
    else:
        sharedIpGroupManager.remove(ipg)
def addServerToIpGroup():
    """
    Add server to IP Group by id
    """
    serverId = getServerId()
    server = serverManager.find(serverId)
    print "server: ", server
    sharedIpGroupId = getSharedIpGroupId()
    sharedIpGroup = sharedIpGroupManager.find(sharedIpGroupId)
    print "shared ip group: ", sharedIpGroup
    ipAddress = getIpAddress()
    serverManager.shareIp(server, ipAddress, sharedIpGroupId, True)
    pass
def waitOnSharedIpGroup():
    sharedIpGroupId = getSharedIpGroupId()
    sharedIpGroup = sharedIpGroupManager.find(sharedIpGroupId)
    print "Shared IP Group: ", sharedIpGroup
    sharedIpGroupManager.wait(sharedIpGroup)