Skip to content

Commit

Permalink
ipmock: Merge pull request #1218 from Gollam/patch-1
Browse files Browse the repository at this point in the history
Adding kwarg parameter to ipmock

Bug-Url: #1218
  • Loading branch information
svinota authored Nov 14, 2024
2 parents e2dfb2a + 30efb2d commit 78cfe83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyroute2/iproute/ipmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,13 +679,13 @@ def route(self, command, **spec):

return self._get_dump([route], rtmsg)

def get_addr(self):
def get_addr(self, **kwarg):
return self._get_dump(self.preset['addr'], ifaddrmsg)

def get_links(self):
def get_links(self, **kwarg):
return self._get_dump(self.preset['links'], ifinfmsg)

def get_routes(self):
def get_routes(self, **kwarg):
return self._get_dump(self.preset['routes'], rtmsg)


Expand Down

0 comments on commit 78cfe83

Please sign in to comment.