Skip to content

Commit 66ce164

Browse files
committed
Merge branch 'master' into HEAD
2 parents e2f4a4e + 433715d commit 66ce164

15 files changed

+3
-14
lines changed

lib/jnpr/junos/cfg/phyport/classic.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class PhyPortClassic(PhyPortBase):
11-
1211
# -----------------------------------------------------------------------
1312
# XML readers
1413
# -----------------------------------------------------------------------

lib/jnpr/junos/cfg/phyport/switch.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class PhyPortSwitch(PhyPortBase):
11-
1211
PORT_SPEED = {
1312
"auto": "auto-negotiation",
1413
"10m": "ethernet-10m",

lib/jnpr/junos/cfg/resource.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class Resource(object):
16-
1716
PROPERTIES = [P_JUNOS_EXISTS, P_JUNOS_ACTIVE]
1817

1918
def __init__(self, junos, namevar=None, **kvargs):

lib/jnpr/junos/factory/cfgtable.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class CfgTable(Table):
12-
1312
__isfrozen = False
1413

1514
# -----------------------------------------------------------------------

lib/jnpr/junos/factory/factory_loader.py

-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ def _sortitems(self):
389389
self._item_views.append(k)
390390

391391
def load(self, catalog_dict, envrion={}):
392-
393392
# load the yaml data and extract the item names. these names will
394393
# become the new class definitions
395394

lib/jnpr/junos/factory/optable.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class OpTable(Table):
17-
1817
# -------------------------------------------------------------------------
1918
# PUBLIC METHODS
2019
# -------------------------------------------------------------------------

lib/jnpr/junos/facts/__example.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# An import for each fact file must be present in
1717
# lib/jnpr/junos/facts/__init__.py
1818

19+
1920
# The file must include a provide_facts() function
2021
# The provide_facts() function must return a dictionary. The keys of the
2122
# dictionary are each fact that is handled/returned by this module. The value

lib/jnpr/junos/facts/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _build_fact_callbacks_and_doc_strings():
6666
"""
6767
callbacks = {}
6868
doc_strings = {}
69-
for (name, module) in sys.modules.items():
69+
for name, module in sys.modules.items():
7070
if name.startswith("jnpr.junos.facts.") and module is not None:
7171
new_doc_strings = module.provides_facts()
7272
for key in new_doc_strings:

lib/jnpr/junos/ofacts/personality.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
def facts_personality(junos, facts):
5-
65
model = facts["model"]
76

87
if model != "Virtual Chassis":

lib/jnpr/junos/ofacts/routing_engines.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def _get_vc_status(dev, facts):
1717

1818

1919
def facts_routing_engines(junos, facts):
20-
2120
re_facts = ["mastership-state", "status", "model", "up-time", "last-reboot-reason"]
2221

2322
master = []

lib/jnpr/junos/ofacts/swver.py

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def facts_software_version(junos, facts):
6464
facts["hostname"] = x_swver.findtext(".//software-information/host-name")
6565

6666
for re_sw in x_swver.xpath(".//software-information"):
67-
6867
re_name = re_sw.xpath("preceding-sibling::re-name")[0].text
6968

7069
# handle the cases where the "RE name" could be things like

lib/jnpr/junos/rpcmeta.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class _RpcMetaExec(object):
9-
109
# -----------------------------------------------------------------------
1110
# CONSTRUCTOR
1211
# -----------------------------------------------------------------------

lib/jnpr/junos/utils/config.py

-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,6 @@ def __init__(self, dev, mode=None, **kwargs):
824824
Util.__init__(self, dev=dev)
825825

826826
def __enter__(self):
827-
828827
# defining separate functions for each mode so that can be
829828
# changed/edited as per the need of corresponding rpc call.
830829
def _open_configuration_private():

lib/jnpr/junos/utils/scp.py

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def _progress(self, report):
5959
print(self._junos.hostname + ": " + report)
6060

6161
def _scp_progress(self, _path, _total, _xfrd):
62-
6362
# calculate current percentage xferd
6463
pct = int(float(_xfrd) / float(_total) * 100)
6564

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"jnpr.junos.cfgro": ["*.yml"],
2525
"jnpr.junos.resources": ["*.yml"],
2626
},
27-
python_requires=">=3.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
27+
python_requires=">=3.5, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
2828
install_requires=install_reqs,
2929
classifiers=[
3030
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)