def indication(self, adapter, npdu): if _debug: WhoIsRouterApplication._debug("indication %r %r", adapter, npdu) if isinstance(npdu, IAmRouterToNetwork): print("{} -> {}, {}".format(npdu.pduSource, npdu.pduDestination, npdu.iartnNetworkList)) BIPNetworkApplication.indication(self, adapter, npdu)
def indication(self, adapter, npdu): if _debug: WhoIsRouterApplication._debug("indication %r %r", adapter, npdu) if isinstance(npdu, IAmRouterToNetwork): print("{} -> {}, {}".format(npdu.pduSource, npdu.pduDestination, npdu.iartnNetworkList)) elif isinstance(npdu, InitializeRoutingTableAck): print("{} routing table".format(npdu.pduSource)) for rte in npdu.irtaTable: print(" {} {} {}".format(rte.rtDNET, rte.rtPortID, rte.rtPortInfo)) BIPNetworkApplication.indication(self, adapter, npdu)
def indication(self, adapter, npdu): if _debug: WhoIsRouterApplication._debug("indication %r %r", adapter, npdu) BIPNetworkApplication.indication(self, adapter, npdu)
def indication(self, adapter, npdu): if _debug: WhoIsRouterApplication._debug("indication %r %r", adapter, npdu) BIPNetworkApplication.indication(self, adapter, npdu)