Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EthPortTable broken with v2.6.5 #1215

Closed
MarcoBorrini99 opened this issue Nov 4, 2022 · 2 comments
Closed

EthPortTable broken with v2.6.5 #1215

MarcoBorrini99 opened this issue Nov 4, 2022 · 2 comments

Comments

@MarcoBorrini99
Copy link

MarcoBorrini99 commented Nov 4, 2022

In the following scenario:

  • many MX960 devices (Junos: 19.4R3-S9.4)
  • many ACX5448 devices (Junos: 21.4R2-S1.4)

within a 2.6.5 env, the following code outputs an empty EthPortTable (e.g.mip-12 is a mx960 with ge-, xe-, et-, ae interfaces):

>>> from jnpr.junos import Device
>>> dev = Device(host='mip-12', user='USER', password='PASSWORD')
>>> dev.open()
>>> from jnpr.junos.op.ethport import EthPortTable
>>> ethports = EthPortTable(dev)
>>> ethports.get()
EthPortTable:mip-12: 0 items

but in a 2.6.4 env:

>>> from jnpr.junos import Device
>>> dev = Device(host='mip-12', user='USER', password='PASSWORD')
>>> dev.open()
>>> from jnpr.junos.op.ethport import EthPortTable
>>> ethports = EthPortTable(dev)
>>> ethports.get()
EthPortTable:mip-12: 249 items

Can someone confirm this issue?

BR

@chidanandpujar
Copy link
Collaborator

UT logs:

from jnpr.junos import Device
from jnpr.junos.op.ethport import EthPortTable

with Device(host='xx.xx.xx.xx', password='xyz', gather_facts=False ) as dev:
eths = EthPortTable(dev)
eths.get()
for port in eths:
print ("{}: {}".format(port.name, port.oper))

pyez_table_view_test# python tableview.py
ge-0/0/8: up
ge-0/0/9: down
ge-0/0/10: up
ge-0/0/11: up
ge-0/0/12: down
ge-0/0/13: up
ge-0/0/14: down
ge-0/0/15: up
ge-0/0/16: down
ge-0/0/17: down
ge-0/0/18: down
ge-0/0/19: down
ge-0/0/20: down
ge-0/0/21: down
ge-0/0/22: down
ge-0/0/23: down

python tableview.py
et-0/0/1: up
et-0/0/3: up
et-0/0/5: up
et-0/0/7: up
et-0/0/9: up
et-0/0/11: up
et-0/0/13: up
et-0/0/15: up

python tableview.py
ge-0/0/0: up
ge-0/0/1: up
ge-0/0/2: down
ge-0/0/3: down
ge-0/0/4: down
ge-0/0/5: down
ge-0/0/6: down
ge-0/0/7: down
ge-0/0/8: down
ge-0/0/9: down
ge-0/1/0: down
ge-0/1/1: down
ge-0/1/2: down
ge-0/1/3: down
ge-0/1/4: down
ge-0/1/5: down
ge-0/1/6: down
ge-0/1/7: down
ge-0/1/8: down
ge-0/1/9: down
xe-0/2/0: down
xe-0/2/1: down
xe-0/3/0: down
xe-0/3/1: down

@chidanandpujar
Copy link
Collaborator

Fixed #1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants