Closed mclee23 closed 2 years ago
def _get_structured_output(self, command: str, template_name: str = None):
"""
Wrapper for napalm.base.helpers.textfsm_extractor()
.
"""
if template_name is None:
templatename = "".join(command.split())
raw_output = self.send_command(command)
print(raw_output) # raw_output: get all interface
result = textfsm_extractor(self, template_name, raw_output)
print(result) # only one port
return result
is template wrong ???
H3C S6520 SW
"display interface" result like this:
"""