Huawei.py 408 B

123456789101112131415161718192021
  1. from OLTBase import OLTBase
  2. class Huawei(OLTBase):
  3. def __init__(self, model, ssh):
  4. OLTBase.__init__(self, model, ssh)
  5. def run_enable(self):
  6. return True
  7. def get_write_exit(self):
  8. return "quit"
  9. def get_expected_exit(self):
  10. return "[n]:"
  11. def get_write_exit_confirmation(self):
  12. return "y"
  13. def run_enable_password(self):
  14. return False