MCPcopy Create free account
hub / github.com/FDio/vpp / get_input_cli

Method get_input_cli

test/vpp_pg_interface.py:118–129  ·  view source on GitHub ↗

return CLI string to load the injected packets

(self, nb_replays=None, worker=None)

Source from the content-addressed store, hash-verified

116 return self._cap_name
117
118 def get_input_cli(self, nb_replays=None, worker=None):
119 """return CLI string to load the injected packets"""
120 input_cli = "packet-generator new pcap %s source pg%u name %s" % (
121 self.get_in_path(worker),
122 self.pg_index,
123 self.get_cap_name(worker),
124 )
125 if nb_replays is not None:
126 return "%s limit %d" % (input_cli, nb_replays)
127 if worker is not None:
128 return "%s worker %d" % (input_cli, worker)
129 return input_cli
130
131 @property
132 def in_history_counter(self):

Callers 1

add_streamMethod · 0.95

Calls 2

get_in_pathMethod · 0.95
get_cap_nameMethod · 0.95

Tested by

no test coverage detected