- return (self.name, self.dev, self.username, self.password)
-
- def update(self, dev=None, username=None, password=None):
- if dev is not None:
- self.dev = dev
+ if self.type == 'TUNNEL':
+ return (self.name, self.username, self.password, self.type, self.server)
+ elif self.type == 'PPP' or self.type == 'OE':
+ return (self.name, self.username, self.password, self.type, self.device)
+
+ def update(self, device=None, username=None, password=None):
+ if device is not None:
+ self.device = device