Allow multiple instantiations of GenericNetlink
This commit is contained in:
@@ -252,11 +252,12 @@ class GenericNetlink(object):
|
||||
7: ('mcast_groups', Array(_mcast_grp_attr)),
|
||||
})
|
||||
|
||||
_msgtypes = [
|
||||
def __init__(self):
|
||||
self._msgtypes = [
|
||||
{
|
||||
'id': 0x10,
|
||||
'name': 'nlctrl',
|
||||
'parser': _ctrl_attr,
|
||||
'parser': self._ctrl_attr,
|
||||
'commands': {
|
||||
'newfamily': 1,
|
||||
'getfamily': 3,
|
||||
@@ -264,7 +265,6 @@ class GenericNetlink(object):
|
||||
},
|
||||
]
|
||||
|
||||
def __init__(self):
|
||||
self._netlink = Netlink()
|
||||
self._UpdateMsgTypes()
|
||||
self.Send('nlctrl', ['dump'], 'getfamily', 1)
|
||||
|
||||
Reference in New Issue
Block a user