return CLI string to load the injected packets
(self, nb_replays=None, worker=None)
| 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): |
no test coverage detected