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

Method before_cli

test/hook.py:215–224  ·  view source on GitHub ↗

Check if VPP died before executing a CLI :param cli: CLI string :raises Exception: exception if VPP is not running anymore

(self, cli)

Source from the content-addressed store, hash-verified

213 self.poll_vpp()
214
215 def before_cli(self, cli):
216 """
217 Check if VPP died before executing a CLI
218
219 :param cli: CLI string
220 :raises Exception: exception if VPP is not running anymore
221
222 """
223 super(PollHook, self).before_cli(cli)
224 self.poll_vpp()
225
226
227class StepHook(PollHook):

Callers

nothing calls this directly

Calls 2

poll_vppMethod · 0.95
before_cliMethod · 0.45

Tested by

no test coverage detected