mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-03-01 03:14:50 +00:00
PatchedDriver overload
This commit is contained in:
@@ -37,6 +37,18 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
||||
self.patched_attrs = ['device']
|
||||
self.device = FakeVyOSDevice()
|
||||
|
||||
def disconnect(self):
|
||||
pass
|
||||
|
||||
def is_alive(self):
|
||||
return {
|
||||
'is_alive': True # In testing everything works..
|
||||
}
|
||||
|
||||
def open(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
class FakeVyOSDevice(BaseTestDouble):
|
||||
"""VyOS device test double."""
|
||||
|
||||
Reference in New Issue
Block a user