def cmd_INTERFACE(self, line):
        config = InterfaceOptions(self.terminal)

        try:
            config.parseOptions(line)
            cmd = config.subCommand
            opts = config.subOptions if hasattr(config, 'subOptions') else {}
        except usage.UsageError as errortext:
            self.terminal.write("BUG in usage: {0}".format(errortext))
        else:
            if cmd == 'add':
                if (opts['addr'] and opts['etag'] and opts['itag']
                    and opts['itype'] and opts['icls']):
                    self.callToUser('addInterface', 'robot', opts['etag'],
                                    opts['itag'], opts['itype'], opts['icls'],
                                    opts['addr'])
                elif (opts['etag'] and opts['itag'] and opts['itype'] and
                      opts['icls']):
                    self.callToUser('addInterface', 'robot', opts['etag'],
                                    opts['itag'], opts['itype'], opts['icls'])
            elif cmd == 'remove':
                if opts['etag'] and opts['itag']:
                    self.callToUser('removeInterface', 'robot', opts['etag'],
                                    opts['itag'])
Handler for interface command.
dataset/ETHPy150Open rapyuta/rce/rce-console/rce/console/console.py/ConsoleClient.cmd_INTERFACE