You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value Required INTERFACE (\S+)
Value SWITCHPORT (.+)
Value SWITCHPORT_MONITOR (.+)
Value SWITCHPORT_NEGOTIATION (.+)
Value MODE (.+)
Value ACCESS_VLAN (\d+)
Value NATIVE_VLAN (\d+)
Value VOICE_VLAN (\S+)
Value TRUNKING_VLANS (.+)
Start
^Name: -> Continue.Record
^Name:\s+${INTERFACE}
^\s*Switchport:\s+${SWITCHPORT}
^\s*Switchport\s+Monitor:\s+${SWITCHPORT_MONITOR}
^\s*Operational\s+Mode:\s+${MODE}
^\s*Negotiation\s+of\s+Trunking:\s+${SWITCHPORT_NEGOTIATION}
^\s*Access\s+Mode\s+VLAN:\s+${ACCESS_VLAN}
^\s*Trunking\s+Native\s+Mode\s+VLAN:\s+${NATIVE_VLAN}
^\s*Voice\s+VLAN:\s+${VOICE_VLAN}
^\s*Trunking\s+VLANs\s+Enabled:\s+${TRUNKING_VLANS}
^\s*Administrative\s+Mode
^\s*(?:Operational|Administrative)\s+(?:Trunking|Native\s+VLAN|private-vlan)
^\s*Voice\s+VLAN:
^\s*Pruning\s+VLANs
^\s*Capture\s+(?:Mode|VLANs)
^\s*Protected
^\s*Appliance\s+trust
^\s*$$
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^. -> Error
File "/usr/local/lib/python3.5/dist-packages/netmiko/base_connection.py", line 1355, in send_command
output, platform=self.device_type, command=command_string.strip()
File "/usr/local/lib/python3.5/dist-packages/netmiko/utilities.py", line 268, in get_structured_data
textfsm_obj.ParseCmd(raw_output, attrs)
File "/usr/local/lib/python3.5/dist-packages/netmiko/_textfsm/_clitable.py", line 272, in ParseCmd
self.table = self._ParseCmdItem(self.raw, template_file=template_files[0])
File "/usr/local/lib/python3.5/dist-packages/netmiko/_textfsm/_clitable.py", line 303, in _ParseCmdItem
for record in fsm.ParseText(cmd_input):
File "/usr/local/lib/python3.5/dist-packages/textfsm/parser.py", line 895, in ParseText
self._CheckLine(line)
File "/usr/local/lib/python3.5/dist-packages/textfsm/parser.py", line 944, in _CheckLine
if self._Operations(rule, line):
File "/usr/local/lib/python3.5/dist-packages/textfsm/parser.py", line 1025, in _Operations
% (rule.line_num, line))
textfsm.parser.TextFSMError: State Error raised. Rule Line: 34. Input Line: Unknown unicast blocked: disabled
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
Parsing fails with
textfsm.parser.TextFSMError: State Error raised. Rule Line: 34. Input Line: Unknown unicast blocked: disabled
It seems as if the template has no rule to match the "Unknown unicast blocked" and "Unknown multicast blocked" lines.
Earlier versions (I tried 1.2.1) work fine because they have a
^.+$$
entry at the end.STEPS TO REPRODUCE
I am using Netmiko send_command() with the
use_textfsm=True
argumentEXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: