Assuming the legacy switches speak LLDP, I think you'd generally have to query them using SNMP to get the information you need. This wouldn't be a straightforward modification of how the current discovery component works -- it'd be a complete rewrite.
-- Murphy On Mon, Jul 8, 2019 at 12:27 AM AASIF MNIT <aasifm...@gmail.com> wrote: > I am trying a way to modify lldp packet such that it can discover topology > in hybrid Sdn(having legacy switches). what fields should I add or delete > from lldp frame formate? > > On Mon, 8 Jul 2019 at 00:52, Murphy McCauley <murphy.mccau...@gmail.com> > wrote: > >> So this is the constructor for LLDPSender. The docstring explains what >> the two parameters are. ttl probably isn't that important. >> send_cycle_time has to do with how fast discovery is sending packets. >> >> You don't usually construct LLDPSenders yourself, though. Normally, the >> discovery component (class Discovery) constructs them for you -- all you >> need to do is put "openflow.discovery" on the POX commandline. >> >> If you're trying to modify how discovery works or something, you might >> get better help if you explained what you were actually trying to >> accomplish. >> >> -- Murphy >> >> On Sun, Jul 7, 2019 at 5:59 AM AASIF MNIT <aasifm...@gmail.com> wrote: >> >>> I am working on a security project, and unable to get the function of >>> the following method which is in discovery.py >>> >>> def __init__ (self, send_cycle_time, ttl = 120): >>> >>> please help me in understanding this method >>> >>>