Skip to content

Commit

Permalink
Test connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Prachi Damle authored and Prachi Damle committed Apr 15, 2016
1 parent 1b6d58b commit f11241b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions providers/f5/f5_bigip.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ func init() {

client = bigip.NewSession(f5_host, f5_admin, f5_pwd)

logrus.Debugf("f5 TestConnection check")
vs, err := client.VirtualServers()
if err != nil {
logrus.Fatalf("f5 TestConnection: Error listing f5 virtual servers: %v\n", err)
} else {
logrus.Debugf("f5 TestConnection check passed %v", vs)
}

f5BigIPHandler := &F5BigIPHandler{}
if err := providers.RegisterProvider(name, f5BigIPHandler); err != nil {
logrus.Fatalf("Could not register %s provider", name)
Expand Down

0 comments on commit f11241b

Please sign in to comment.