| 250 | |
| 251 | |
| 252 | class netscaler(object): |
| 253 | |
| 254 | def __init__(self, hostname=None, username='nsroot', password='nsroot'): |
| 255 | self.hostname = hostname |
| 256 | self.username = username |
| 257 | self.password = password |
| 258 | self.networkdevicetype = 'NetscalerVPXLoadBalancer' |
| 259 | self.publicinterface = '1/1' |
| 260 | self.privateinterface = '1/1' |
| 261 | self.numretries = '2' |
| 262 | self.lbdevicecapacity = '50' |
| 263 | self.lbdevicededicated = 'false' |
| 264 | |
| 265 | def getUrl(self): |
| 266 | return repr(self) |
| 267 | |
| 268 | def __repr__(self): |
| 269 | req = list(zip(list(self.__dict__.keys()), list(self.__dict__.values()))) |
| 270 | return self.hostname + "?" + "&".join(["=".join([r[0], r[1]]) |
| 271 | for r in req]) |
| 272 | |
| 273 | class bigip(object): |
| 274 |
no outgoing calls
no test coverage detected