def get_port_stats(self, dpid, port_id=None):
        url = (self._of_base_url +
               'stats/ports?dpid={0}'.format(urllib.quote(dpid)))
        if port_id:
            url = url + '&port_id={0}'.format(port_id)
        return self.restclient.get(url)
Get all the items of the given content type related to this item.
dataset/ETHPy150Open dave-tucker/hp-sdn-client/hpsdnclient/of.py/OfMixin.get_port_stats--crossover with--dataset/ETHPy150Open callowayproject/django-categories/categories/models.py/CategoryRelationManager.get_content_type