Skip to content

Commit

Permalink
Merge branch 'shorton3-develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed May 10, 2021
2 parents 4a70768 + 9a91c19 commit 296c555
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
10 changes: 8 additions & 2 deletions eNMS/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,10 @@ class NapalmForm(ConnectionForm):
get_request_allowed = False
abstract_service = True
driver = SelectField(choices=vs.napalm_drivers)
use_device_driver = BooleanField(default=True)
use_device_driver = BooleanField(
default=True,
help="common/use_device_driver",
)
timeout = IntegerField(default=10)
optional_args = DictField()
groups = {
Expand All @@ -929,7 +932,10 @@ class NetmikoForm(ConnectionForm):
form_type = HiddenField(default="netmiko")
abstract_service = True
driver = SelectField(choices=vs.netmiko_drivers)
use_device_driver = BooleanField(default=True)
use_device_driver = BooleanField(
default=True,
help="common/use_device_driver",
)
enable_mode = BooleanField(
"Enable mode (run in enable mode or as root)", default=True
)
Expand Down
16 changes: 16 additions & 0 deletions eNMS/templates/help/common/use_device_driver.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="modal-body">
<div>
<h2>Use Device Driver</h2>
<p>When enabled, use the device driver specified for the device in the inventory.</p>
<p>
Sometimes it makes sense to override the inventory-specified device driver for a
particular service. For example, a secondary/custom device driver exists for a
particular function, or perhaps another device's driver supports a function better,
which is the case for certain Cisco drivers.
</p>
<p>
When switching to another device driver, the Close Connection or Start New Connection
option needs to be used to consume and recreate the cached connection for this device.
</p>
</div>
</div>

0 comments on commit 296c555

Please sign in to comment.