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

Fix for issue #1354 #1360

Closed
wants to merge 1 commit into from
Closed

Conversation

chidanandpujar
Copy link
Collaborator

@chidanandpujar chidanandpujar commented Feb 5, 2025

line was deleted as part fix #1335, reverted the changes.

from napalm.junos import JunOSDriver
from pprint import pprint

test_host = JunOSDriver(hostname="xx.xx.xx.xx", username="xyz", password="xyz")
test_host.open()
pprint(test_host.get_interfaces())
test_host.close()


python3 get_interfaces_napalm.py 
{'cbp0': {'description': '',
          'is_enabled': True,
          'is_up': True,
          'last_flapped': -1.0,
          'mac_address': 'x.x.x.x',
          'mtu': 9192,
          'speed': -1.0},
 'demux0': {'description': '',
            'is_enabled': True,
            'is_up': True,
            'last_flapped': -1.0,
            'mac_address': 'None',
            'mtu': 9192,
            'speed': -1.0},

@chidanandpujar
Copy link
Collaborator Author

New pull request submitted with black tool error fixes.

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

Successfully merging this pull request may close these issues.

1 participant