Catv.py 424 B

1234567891011121314151617
  1. from Base import Base
  2. class Catv(Base):
  3. def __init__(self):
  4. Base.__init__(self)
  5. def is_catv(self):
  6. """
  7. :return: Return TRUE if onu support catv
  8. """
  9. data_compare = self.name.lower().strip()
  10. if data_compare.index("interface") == 0 and data_compare.index("video") > 0 and data_compare.index("lock") > 0:
  11. return False
  12. else:
  13. return True