Skip to content

Commit 995b703

Browse files
committed
[change] Implement SNMPDUMP
1 parent 034475c commit 995b703

10 files changed

Lines changed: 378 additions & 316 deletions

File tree

netengine/backends/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ def __repr__(self):
2121
"""returns unicode string represantation"""
2222
return self.__str__()
2323

24-
def validate(self):
24+
def validate(self, *args, **kwargs):
2525
raise NotImplementedError('Not implemented')
2626

27-
def to_dict(self):
27+
def to_dict(self, autowalk=True):
2828
raise NotImplementedError('Not implemented')
2929

30-
def to_json(self, **kwargs):
31-
dictionary = self.to_dict()
30+
def to_json(self, autowalk=True, **kwargs):
31+
dictionary = self.to_dict(autowalk=autowalk)
3232
return json.dumps(dictionary, **kwargs)
3333

3434
@property

netengine/backends/dummy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_interfaces(self):
6363
},
6464
]
6565

66-
def to_dict(self):
66+
def to_dict(self, *args, **kwargs):
6767
return self._dict(
6868
{
6969
'name': 'dummy',

0 commit comments

Comments
 (0)