Skip to content

Commit

Permalink
[646] updating junos.py to support PTX platform (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
bplimp authored and dbarrosop committed Mar 14, 2018
1 parent 602e25f commit a0a7802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/junos/junos.py
Expand Up @@ -706,15 +706,15 @@ def get_lldp_neighbors_detail(self, interface=''):
# Exceptions:
# EX9208 personality = SWITCH RPC: <get-lldp-interface-neighbors><interface-device>
lldp_table.GET_RPC = 'get-lldp-interface-neighbors'
if self.device.facts.get('personality') not in ('MX', 'M', 'T')\
if self.device.facts.get('personality') not in ('MX', 'M', 'PTX', 'T')\
and self.device.facts.get('model') not in ('EX9208', 'QFX10008'):
# Still need to confirm for QFX10002 and other EX series
lldp_table.GET_RPC = 'get-lldp-interface-neighbors-information'

for interface in interfaces:
if 'EX9208' in self.device.facts.get('model'):
lldp_table.get(interface_device=interface)
elif self.device.facts.get('personality') not in ('MX', 'M', 'T'):
elif self.device.facts.get('personality') not in ('MX', 'M', 'PTX', 'T'):
lldp_table.get(interface_name=interface)
else:
lldp_table.get(interface_device=interface)
Expand Down

0 comments on commit a0a7802

Please sign in to comment.