/[shmookey]/portconf/index.py


UCC Code Repository

Diff of /portconf/index.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 117 by shmookey, Tue Jun 3 07:49:09 2008 UTC revision 119 by shmookey, Wed Jun 4 14:15:39 2008 UTC
# Line 151  def ShowSwitchStatus (switchName): Line 151  def ShowSwitchStatus (switchName):
151                    
152          try:          try:
153                  switch = pyaaa.SafeObject (pycisco.NetworkDevice (), switchName)                  switch = pyaaa.SafeObject (pycisco.NetworkDevice (), switchName)
154                  switch._username = "me"                  switch._Resume (sessionID)
155                  switch._Remap ("Connect", {"hostname" : "hostname", "username" : "usern", "password" : "passw", "enable" : "enablepw"})                  switch._Remap ("Connect", {"hostname" : "hostname", "username" : "usern", "password" : "passw", "enable" : "enablepw"})
156                  switch.Connect ()                  switch.Connect ()
157                  ports = switch.GetPortSummary ()                  ports = switch.GetPortSummary ()

Legend:
Removed from v.117  
changed lines
  Added in v.119

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26