INNER CODE UNIT · Python
is_switchport
mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:203
def is_switchport(self):
"""subclasses will override this method"""
raise NotImplementedError()
# On BaseCfgLine()
@is_switchport.setter
@logger.catch(reraise=True)
def is_switchport(self, value):
raise NotImplementedError()
# On BaseCfgLine()
@logger.catch(reraise=True)
def set_comment_bool(self):
"""Set the .is_comment attribute for this object."""
delimiters = set(self.comment_delimiter)
## Use this instead of a regex... nontrivial speed enhancement
tmp = self.text.lstrip()
for delimit_char in delimiters: