'Rename interface'

def rename(self, newname):

    self.ifconfig('down')
    result = self.cmd('ip    link    set', self.name, 'name', newname)
    self.name = newname
    self.ifconfig('up')
    return result
