question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Palo Alto Driver Extra Delays Required

See original GitHub issue

@GGabriele FYI, I removed the extra delay_factor in the unit tests and the extra sleep times. The send_command_expect shouldn’t need this.

This makes me believe there is a different issue (i.e. something is not working correctly with send_command_expect on the PA device).

What issue do you see when you run the unit tests without these extra delays?

show_version = net_connect.send_command_expect(commands["version"], delay_factor=2)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
GGabrielecommented, May 6, 2016

Thanks for finding the time to go through this 😃

1reaction
GGabrielecommented, May 6, 2016

Theeeere we go 😃

gabriele@gabriele:~/netmiko/tests$ py.test -v test_netmiko_show.py --test_device paloalto_panos
============================================================= test session starts =============================================================
platform linux2 -- Python 2.7.6 -- pytest-2.5.1 -- /usr/bin/python
collected 11 items 

test_netmiko_show.py:25: test_disable_paging PASSED
test_netmiko_show.py:32: test_ssh_connect PASSED
test_netmiko_show.py:40: test_send_command PASSED
test_netmiko_show.py:49: test_send_command_expect PASSED
test_netmiko_show.py:56: test_base_prompt PASSED
test_netmiko_show.py:60: test_strip_prompt PASSED
test_netmiko_show.py:67: test_strip_command PASSED
test_netmiko_show.py:74: test_normalize_linefeeds PASSED
test_netmiko_show.py:81: test_clear_buffer PASSED
test_netmiko_show.py:92: test_enable_mode PASSED
test_netmiko_show.py:105: test_disconnect PASSED

========================================================= 11 passed in 32.94 seconds ==========================================================


gabriele@gabriele:~/netmiko/tests$ py.test -v test_netmiko_config.py --test_device paloalto_panos
============================================================= test session starts =============================================================
platform linux2 -- Python 2.7.6 -- pytest-2.5.1 -- /usr/bin/python
collected 7 items 

test_netmiko_config.py:21: test_ssh_connect PASSED
test_netmiko_config.py:29: test_enable_mode PASSED
test_netmiko_config.py:43: test_config_mode PASSED
test_netmiko_config.py:51: test_exit_config_mode PASSED
test_netmiko_config.py:58: test_command_set PASSED
test_netmiko_config.py:95: test_commands_from_file PASSED
test_netmiko_config.py:109: test_disconnect PASSED

========================================================= 7 passed in 103.02 seconds ==========================================================

Yes, that’s virtual.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Delay, Delay, Delay Attitude in Palo Alto
We don't need a continuance of a delay, delay, attitude. ... non-existent and more expensive than driving (even with the high price of...
Read more >
Addressed Issues in GlobalProtect App 5.2 - Palo Alto Networks
Fixed an issue where the GlobalProtect app for macOS allowed users to enter extra spaces after the portal IP address or FQDN, causing...
Read more >
101 Express Lanes FAQ | Caltrans - CA.gov
Will the freeway require new signs and equipment for the express lanes? ... Clara County Line in Palo Alto are expected to open...
Read more >
Memorandum of Agreement - City of Palo Alto
City of Palo Alto and SEIU Local 521. January 1, 2019- December 31, 2021 ... Employees who are required to maintain commercial driver's....
Read more >
Drive - Alto | Rideshare. Refined.
Rideshare built with you in mind ; Bonus Opportunties. Earn extra for high demand shifts and high quality driving. ; Team Support. Access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found