Skip to content

Commit

Permalink
tc: fix get_qdiscs(index=...)
Browse files Browse the repository at this point in the history
The old version could filter qdiscs by the interface index, fix that
in the new API.

Bug-Url: #1225
  • Loading branch information
svinota committed Jan 10, 2025
1 parent cea3c06 commit 0e32b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroute2/iproute/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async def get_qdiscs(self, index=None):
A compatibility method, == .tc("dump")
'''
return await self.tc('dump')
return await self.tc('dump', index=index)

async def get_filters(self, index=0, handle=0, parent=0):
'''
Expand Down

0 comments on commit 0e32b8e

Please sign in to comment.