mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-09-22 20:21:16 +00:00
PatchedDriver overload
This commit is contained in:
@@ -37,6 +37,18 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
|||||||
self.patched_attrs = ['device']
|
self.patched_attrs = ['device']
|
||||||
self.device = FakeVyOSDevice()
|
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):
|
class FakeVyOSDevice(BaseTestDouble):
|
||||||
"""VyOS device test double."""
|
"""VyOS device test double."""
|
||||||
|
|||||||
Reference in New Issue
Block a user