def from_snapshot(cls, snapshot): return DBSession.query(Node).filter(Node.snapshot==snapshot.id).all()
def from_snapshot(cls, snapshot, node): return DBSession.query(BgpTable).filter(and_(BgpTable.snapshot==snapshot.id, BgpTable.node==node.id)).all()
def from_node(cls, input_node): return DBSession.query(ArpEntry).filter(ArpEntry.node==input_node).all()
def from_snapshot(cls, snapshot, node): return DBSession.query(ArpEntry).filter(and_(ArpEntry.snapshot==snapshot.id, ArpEntry.node==node.id)).all()