def send(self, data): pprint.pprint(data) for prouter in data: lt = map(lambda x: LinkEntry(**x), data[prouter]) uve = PRouterLinkUVE(data=PRouterLinkEntry(name=prouter, link_table=lt)) uve.send()
def delete(self, name): PRouterLinkUVE(data=PRouterLinkEntry(name=name, deleted=True)).send()