Skip to content

Commit

Permalink
Merge pull request #288 from leopoldomauricio/develop
Browse files Browse the repository at this point in the history
Includes juniper models that will use the Junos plugin
  • Loading branch information
Malinoski authored Oct 16, 2020
2 parents bce82b2 + 1b6727c commit 13e21cf
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
6 changes: 4 additions & 2 deletions networkapi/plugins/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ def get_plugin(cls, **kwargs):
from .Cumulus.plugin import Cumulus
return Cumulus
if re.search('JUNIPER', marca.upper(), re.DOTALL):
from .Juniper.JUNOS.plugin import JUNOS
return JUNOS
if re.search('QFX10008', modelo.upper(), re.DOTALL) \
or re.search('QFX5120-48T', modelo.upper(), re.DOTALL):
from .Juniper.JUNOS.plugin import JUNOS
return JUNOS
raise NotImplementedError('plugin not implemented')

@classmethod
Expand Down
19 changes: 17 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,20 @@ stompest==2.1.6
suds==0.4
schema==0.6.6
supervisor==3.3.4
junos-eznc==2.5.3

Jinja2==2.9
MarkupSafe==1.1.1
PyYAML==5.3
certifi==2018.10.15
chardet==3.0.4
gtextfsm==0.2.1
lxml==4.5.2
ncclient==0.6.3
ntc-templates==1.0.0
pyparsing==2.4.7
pyserial==3.4
scp==0.13.2
selectors2==2.0.2
terminal==0.4.0
transitions==0.6.9
urllib3==1.24.1
yamlordereddictloader==0.4.0
20 changes: 19 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,22 @@ PyYAML==3.10
Sphinx==1.2.2
sphinx-rtd-theme==0.1.6
sure==1.2.7
urllib3==1.21.1
#urllib3==1.21.1

Jinja2==2.9
MarkupSafe==1.1.1
PyYAML==5.3
certifi==2018.10.15
chardet==3.0.4
gtextfsm==0.2.1
lxml==4.5.2
ncclient==0.6.3
ntc-templates==1.0.0
pyparsing==2.4.7
pyserial==3.4
scp==0.13.2
selectors2==2.0.2
terminal==0.4.0
transitions==0.6.9
urllib3==1.24.1
yamlordereddictloader==0.4.0

0 comments on commit 13e21cf

Please sign in to comment.