fix index for portchannel

reviewable/pr18780/r1
jedelman8 10 years ago
parent 1e5dd9674e
commit ef904f67a6

@ -205,7 +205,7 @@ def interface_is_portchannel(interface, module):
intf_type = get_interface_type(interface) intf_type = get_interface_type(interface)
if intf_type == 'ethernet': if intf_type == 'ethernet':
command = 'show interface ' + interface command = 'show interface ' + interface
body = execute_show_command(command, module)[0] body = execute_show_command(command, module)
try: try:
interface_table = body[0]['TABLE_interface']['ROW_interface'] interface_table = body[0]['TABLE_interface']['ROW_interface']
except (KeyError, AttributeError, IndexError): except (KeyError, AttributeError, IndexError):

Loading…
Cancel
Save