Skip to content

Commit

Permalink
requests: ignore empty DST for neigh requests
Browse files Browse the repository at this point in the history
Bug-Url: #1158
  • Loading branch information
svinota committed Jan 10, 2024
1 parent 799a5fb commit 0763609
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyroute2/requests/neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ def set_nud(self, context, value):
def set_state(self, context, value):
return self._state(value)

def set_dst(self, context, value):
if value:
return {'dst': value}
else:
return {}


class NeighbourIPRouteFilter(IPRouteFilter):
def set_dst(self, context, value):
Expand Down

0 comments on commit 0763609

Please sign in to comment.