Allow multiple instantiations of GenericNetlink

This commit is contained in:
Ian Gulliver
2015-01-10 16:37:52 +00:00
parent 5b9c67b260
commit d6bbc263ad

View File

@@ -252,19 +252,19 @@ class GenericNetlink(object):
7: ('mcast_groups', Array(_mcast_grp_attr)),
})
_msgtypes = [
{
'id': 0x10,
'name': 'nlctrl',
'parser': _ctrl_attr,
'commands': {
'newfamily': 1,
'getfamily': 3,
},
},
]
def __init__(self):
self._msgtypes = [
{
'id': 0x10,
'name': 'nlctrl',
'parser': self._ctrl_attr,
'commands': {
'newfamily': 1,
'getfamily': 3,
},
},
]
self._netlink = Netlink()
self._UpdateMsgTypes()
self.Send('nlctrl', ['dump'], 'getfamily', 1)