X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FNodePath.py;h=8ee29b234d383325c9a55430af2b4e93fa00b8a9;hp=dfcee4d7201c673efa5276c597c5644a51de1d3e;hb=cf561a6e3d4c4fbd78ab6c9d0a9aa817bb3300fc;hpb=677ae40a2be6db9f49b19ada3c4299a8904f7784 diff --git a/resources/libraries/python/NodePath.py b/resources/libraries/python/NodePath.py index dfcee4d720..8ee29b234d 100644 --- a/resources/libraries/python/NodePath.py +++ b/resources/libraries/python/NodePath.py @@ -101,7 +101,6 @@ class NodePath(object): .. note:: First add at least two nodes to the topology. """ nodes = self._nodes - nodes_filer = self._nodes_filter if len(nodes) < 2: raise RuntimeError('Not enough nodes to compute path') @@ -144,7 +143,7 @@ class NodePath(object): def next_interface(self): """Path interface iterator. - :return: Interface and node or None if not next interface. + :returns: Interface and node or None if not next interface. :rtype: tuple (str, dict) .. note:: Call compute_path before. @@ -157,7 +156,7 @@ class NodePath(object): def first_interface(self): """Return first interface on the path. - :return: Interface and node. + :returns: Interface and node. :rtype: tuple (str, dict) .. note:: Call compute_path before. @@ -169,7 +168,7 @@ class NodePath(object): def last_interface(self): """Return last interface on the path. - :return: Interface and node. + :returns: Interface and node. :rtype: tuple (str, dict) .. note:: Call compute_path before. @@ -181,7 +180,7 @@ class NodePath(object): def first_ingress_interface(self): """Return first ingress interface on the path. - :return: Interface and node. + :returns: Interface and node. :rtype: tuple (str, dict) .. note:: Call compute_path before. @@ -193,7 +192,7 @@ class NodePath(object): def last_egress_interface(self): """Return last egress interface on the path. - :return: Interface and node. + :returns: Interface and node. :rtype: tuple (str, dict) .. note:: Call compute_path before.