pyats.topology.loader package

pyats.topology.loader.load(loadable=None, source=None, **kwargs)

topology loader function

Logic:
  • if source key is provided, look for entrypoint and load with kwargs

  • else load whatever loadable is

Returns

loaded testbed object

Submodules

class pyats.topology.loader.markup.TestbedMarkupProcessor(*args, **argv)

Bases: pyats.utils.yaml.markup.Processor

match_intf_markup(data)
p_ask_markup(match, data, index, locations=None)
p_intf_markup(match, data, index, locations=None)
p_reference_markup(match, data, index, locations=None)
pyats.topology.loader.markup.cred_password_ask_prompt(index)

Form the prompt to use when asking user to enter a password.

Parameters

index (list) – Location in content of secret string to ask user to enter.

Returns

(credential_name, additional_prompt_text) This information is used to construct the following user prompt: “Enter {credential_name}password{additional_prompt_text)”

Return type

tuple