Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

vpngen.py 647B

1234567891011121314151617181920212223242526
  1. from enum import Enum
  2. class VpnGenError(Enum):
  3. Success = 0,
  4. VpnAlreadyExists = 1,
  5. VpnDoesNotExists = 2,
  6. ClientAlreadyExists = 3,
  7. ClientDoesNotExists = 4
  8. class VpnGen:
  9. def create_vpn(self, vpn_name):
  10. return VpnGenError.ClientDoesNotExists
  11. def remove_vpn(self, vpn_name):
  12. return VpnGenError.ClientDoesNotExists
  13. def create_client(self, vpn_name, client_name):
  14. return VpnGenError.ClientDoesNotExists
  15. def remove_client(self, vpn_name, client_name):
  16. return VpnGenError.ClientDoesNotExists
  17. def rebuild_clients(self, vpn_name):
  18. return VpnGenError.ClientDoesNotExists