def addNetworkInterface(self, name, link=None, ip=None, up=None, down=None):
        if up:
            if not os.path.isabs(up):
                raise ValueError('Path to up script has to be absolute.')

            if not os.path.isfile(up):
                raise ValueError('Path to up script is not a file.')

            if not os.access(up, os.X_OK):
                raise ValueError('Up script is not executable.')

        if down:
            if not os.path.isabs(down):
                raise ValueError('Path to down script has to be absolute.')

            if not os.path.isfile(down):
                raise ValueError('Path to down script is not a file.')

            if not os.access(down, os.X_OK):
                raise ValueError('Down script is not executable.')

        self._ifs.append((name, link, ip, up, down))
Returns the path with the query parameters escaped and appended.
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/util/container.py/Container.addNetworkInterface--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/atom/http_core.py/Uri._get_relative_path