1234567891011121314151617 |
- from Base import Base
- class Catv(Base):
- def __init__(self):
- Base.__init__(self)
- def is_catv(self):
- """
- :return: Return TRUE if onu support catv
- """
- data_compare = self.name.lower().strip()
- if data_compare.index("interface") == 0 and data_compare.index("video") > 0 and data_compare.index("lock") > 0:
- return False
- else:
- return True
|