Commit 01654b2b authored by Peter V. Saveliev's avatar Peter V. Saveliev

sock_diag: make the DiagSocket class public

Make also the test module
parent 25b5c123
......@@ -60,6 +60,7 @@ _modules = {'IPRoute': 'pyroute2.iproute',
'NL80211': 'pyroute2.netlink.nl80211',
'DevlinkSocket': 'pyroute2.netlink.devlink',
'IPQSocket': 'pyroute2.netlink.ipq',
'DiagSocket': 'pyroute2.netlink.diag',
'GenericNetlinkSocket': 'pyroute2.netlink.generic',
'NFTSocket': 'pyroute2.netlink.nfnetlink.nftables'}
......@@ -49,6 +49,7 @@ setup(name='pyroute2',
classifiers=['License :: OSI Approved :: GNU General Public ' +
from pyroute2 import DiagSocket
class TestDiag(object):
def test_basic(self):
with DiagSocket() as ds:
assert len(ds.test()) > 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment