Permalink
Browse files

Bug: Telnet connection port

  • Loading branch information...
1 parent 1f234f9 commit 9dde38f7f1967fba6cacd92ecaaeb59cfd313dbc cpaiva committed Mar 5, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 Modulo.Collect.Probe.CiscoIOS/CiscoIOSSystemInformationService.cs
@@ -49,7 +49,16 @@ public class CiscoIOSSystemInformationService : ISystemInformationService
{
public SystemInformation GetSystemInformationFrom(TargetInfo target)
{
- target.Add("PortNum", "23");
+ if (target.ContainsKey("PortNum"))
+ {
+ target["PortNum"] = "23";
+ }
+ else
+ {
+ target.Add("PortNum", "23");
+
+ }
+
CiscoIOSConnectionProvider connectionProvider = new CiscoIOSConnectionProvider();
connectionProvider.Connect(target);
CiscoIOSVersion myVersion = CiscoIOSHelper.CiscoGetVersion(connectionProvider.TelnetConnection);

0 comments on commit 9dde38f

Please sign in to comment.