Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #150 from napalm-automation/develop
Browse files Browse the repository at this point in the history
Release 0.5.5
  • Loading branch information
mirceaulinic authored Oct 11, 2017
2 parents fb4c55e + 761e0f8 commit 42920d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![PyPI](https://img.shields.io/pypi/v/napalm-iosxr.svg)](https://pypi.python.org/pypi/napalm-iosxr)
[![PyPI](https://img.shields.io/pypi/dm/napalm-iosxr.svg)](https://pypi.python.org/pypi/napalm-iosxr)
[![Build Status](https://travis-ci.org/napalm-automation/napalm-iosxr.svg?branch=master)](https://travis-ci.org/napalm-automation/napalm-iosxr)
[![Coverage Status](https://coveralls.io/repos/github/napalm-automation/napalm-iosxr/badge.svg?branch=master)](https://coveralls.io/github/napalm-automation/napalm-iosxr)

Expand Down
17 changes: 3 additions & 14 deletions napalm_iosxr/iosxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# import stdlib
import re
import copy
import socket
from collections import defaultdict

# import third party lib
Expand Down Expand Up @@ -106,20 +105,10 @@ def close(self):
self.device.close()

def is_alive(self):
null = chr(0)
try:
# Try sending ASCII null byte to maintain
# the connection alive
self.device.device.send_command(null)
except (socket.error, EOFError):
# If unable to send, we can tell for sure
# that the connection is unusable,
# hence return False.
return {
'is_alive': False
}
"""Returns a flag with the state of the connection."""
# Simply returns the flag from Netmiko
return {
'is_alive': self.device.device.remote_conn.transport.is_active()
'is_alive': self.device.device.is_alive()
}

def load_replace_candidate(self, filename=None, config=None):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
napalm-base>=0.18.0
napalm-base>=0.25.0
pyIOSXR>=0.51
netaddr
netmiko>=1.4.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="napalm-iosxr",
version="0.5.4",
version="0.5.5",
packages=find_packages(exclude=["test", "test.*"]),
author="David Barroso, Mircea Ulinic",
author_email="[email protected], [email protected]",
Expand Down

0 comments on commit 42920d9

Please sign in to comment.