print "Waypoint %s could not be set for link %s" % (ip, link_name)
return
print "Waypoint %s successfully set for link %s" % (ip, link_name)
+
+ # Enable waypoint
+ def enable_waypoint(self, link_name):
+ resp, content = self.http.request(self.url_prefix + "link/%s/enable" % link_name, "PUT")
+ if (resp.status != 201):
+ print "Waypoint could not be enabled for link %s" % link_name
+ print resp.status
+ return
+ print "Waypoint enabled for link %s" % link_name