def _common_link(self, link_id, action):
        if link_id not in self.nmlbilink_nmlbiports_map:
            raise Exception('Unknown link "{}"'.format(link_id))

        # iterate endpoints
        for port_id in self.nmlbilink_nmlbiports_map[link_id]:

            # Get specification for this endpoint
            port_spec = self.nmlbiport_iface_map[port_id]

            # Get node for the owner of this port
            enode = self.nmlnode_node_map[port_spec['owner']]
            enode.set_port_state(port_spec['label'], action)
Gets the path to the temp dir that viewfinder should use as temp.
dataset/ETHPy150Open HPENetworking/topology_docker/lib/topology_docker/platform.py/DockerPlatform._common_link--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/environ.py/ServerEnvironment.GetViewfinderTempDirPath