public static List <ShowCDPEntryItem> ParseShowCDPEntries(string text) { try { var parser = new CiscoShowCDPEntry(); return(parser.Parse(text)); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); } return(null); }
public List <ShowCDPEntryItem> ShowCDPNeighbors() { var text = ExecuteSingleCommand("show cdp entry *"); try { var parser = new CiscoShowCDPEntry(); return(parser.Parse(text)); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); } return(null); }