12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- class OLTBase:
- model = None
- ssh = None
- def __init__(self, model, ssh):
- self.model = model
- self.ssh = ssh
- def get_expected_name(self):
- return "name:"
- def get_expected_password(self):
- return "password:"
- def get_expected_cardinal(self):
- return "#"
- def get_expected_initial(self):
- return ">"
- def run_enable(self):
- return False
- def run_enable_password(self):
- return True
- def get_write_enable(self):
- return "enable"
- def get_expected_enable_password(self):
- return "Password:"
- def get_write_exit(self):
- return "exit"
- def get_expected_exit(self):
- return None
- def get_expected_exit_with_confirmation(self):
- return None
- def get_write_exit_confirmation(self):
- return None
- def get_character_error(self):
- return "^"
|