The Untangle admin username.
.IP \fBpassword\fR\ (required)
The Untangle admin password.
-.IP \fBversion\fR\ (default:\ \fI11\fR)
-The version of Untangle running on this host. Currently only \fI9\fR
-and \fI11\fR are supported.
+.IP \fBversion\fR\ (default:\ \fI12\fR)
+The version of Untangle running on this host. Currently only \fI9\fR,
+\fI11\fR, and \fI12\fR are supported.
.IP \fBverify_cert\fR\ (default:\ False)
Whether or not to verify the site's SSL certificate, either
\fITrue\fR or \fIFalse\fR.
self.host = s['host']
self.username = s.get('username', 'admin')
self.password = s['password']
- self.version = int(s.get('version', '11'))
+ self.version = int(s.get('version', '12'))
self.base_url = 'https://' + self.host + '/' # This never changes
# Sanity check the numerical version.
return self.get_backup_v9()
elif self.version == 11:
return self.get_backup_v11()
+ elif self.version == 12:
+ # The procedure for v12 is the same as for v11.
+ return self.get_backup_v11()
def get_backup_v9(self):