12345678910111213141516171819202122 |
- from Base import Base
- from Util import Strings
- class TrafficProfile(Base):
- # Contains object id created to database to table profile
- idDataBaseProfile = 0
- def __init__(self):
- Base.__init__(self)
- def get_traffic_profile(self):
- """
- Get the traffic profile name
- :return: Return the traffic profile or blank
- """
- data_compare = self.name.lower().split()
- index = Strings.index_value(data_compare, "traffic-profile")
- if index >= 0:
- return data_compare[index + 1].strip()
- else:
- return ""
|