diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-24 14:37:05 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-24 14:37:05 +0200 |
| commit | 03f0fc68168de8db1735cc7d1c4d328c4bdd03f2 (patch) | |
| tree | 53218a27cbfbfccf8fb792835e31f28d36aadbfa /wrappers/python/src/main.py | |
| parent | fea086334359e715ee388e01c4a4a00f5f379fe4 (diff) | |
State + Server + Exports: Implement removing a server
Diffstat (limited to 'wrappers/python/src/main.py')
| -rw-r--r-- | wrappers/python/src/main.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index 7ebeae6..b37842f 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -98,6 +98,24 @@ class EduVPN(object): return organizations + def remove_secure_internet(self): + remove_err = self.go_function(lib.RemoveSecureInternet) + + if remove_err: + raise Exception(remove_err) + + def remove_institute_access(self, url: str): + remove_err = self.go_function(lib.RemoveInstituteAccess, url) + + if remove_err: + raise Exception(remove_err) + + def remove_custom_server(self, url: str): + remove_err = self.go_function(lib.RemoveCustomServer, url) + + if remove_err: + raise Exception(remove_err) + def get_config(self, url: str, func: callable, force_tcp: bool = False): # Because it could be the case that a profile callback is started, store a threading event # In the constructor, we have defined a wait event for Ask_Profile, this waits for this event to be set |
