def __init__(self, type, cmd, attrs=[], flags=0): self.type = type self.cmd = cmd self.attrs = attrs Message.__init__(self, type, flags=flags, payload=[DcbnlHdr(len=0, type=self.cmd)] + attrs)
def __init__(self, family, cmd, attrs=[], flags=0, version=0): self.cmd = cmd self.attrs = attrs self.family = family Message.__init__(self, family, flags=flags, payload=[GenlHdr(self.cmd, version=version)] + attrs)
def __init__(self, family, cmd, attrs=[], flags=0, seq=0): self.cmd = cmd self.attrs = attrs self.family = family Message.__init__(self, family, flags=flags, payload=[GenlHdr(self.cmd)]+attrs, seq=0)
def __init__(self, type, cmd, attrs=[], flags=0): self.type = type self.cmd = cmd self.attrs = attrs Message.__init__(self, type, flags=flags, payload=[DcbnlHdr(len=0, type=self.cmd)]+attrs)