X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVPPUtil.py;h=c7354942824fee608334d8487a3b9ea8dbeceafa;hp=a7ec44c97410f3cac1f26b0aa95c4764da67550c;hb=a318ebefc569c5c1b1527c5de6dd3e3ac2f9c163;hpb=a9f54ca5080aeef17686f300a6807bf9b46b7c90 diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index a7ec44c974..c735494282 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -361,26 +361,3 @@ class VPPUtil: logger.trace(f"show threads:\n{threads_data}") return threads_data - - @staticmethod - def vpp_add_graph_node_next(node, graph_node_name, graph_next_name): - """Set the next node for a given node. - - :param node: Node to run command on. - :param graph_node_name: Graph node to add the next node on. - :param graph_next_name: Graph node to add as the next node. - :type node: dict - :type graph_node_name: str - :type graph_next_name: str - :returns: The index of the next node. - :rtype: int - """ - cmd = u"add_node_next" - args = dict( - node_name=graph_node_name, - next_name=graph_next_name - ) - with PapiSocketExecutor(node) as papi_exec: - reply = papi_exec.add(cmd, **args).get_reply() - - return reply[u"next_index"]