def processCL(self, dbag): # Convert the ip stuff to an ip object and pass that into cs_ip_merge # "eth0ip": "192.168.56.32", # "eth0mask": "255.255.255.0", self.newData = [] if (self.qFile.data['cmd_line']['type'] == "router"): self.processCLItem('0', "guest") self.processCLItem('1', "control") self.processCLItem('2', "public") elif (self.qFile.data['cmd_line']['type'] == "vpcrouter"): self.processCLItem('0', "control") return cs_cmdline.merge(dbag, self.qFile.data)
def processCL(self, dbag): # Convert the ip stuff to an ip object and pass that into cs_ip_merge # "eth0ip": "192.168.56.32", # "eth0mask": "255.255.255.0", self.newData = [] if (self.qFile.data['cmd_line']['type'] == "router"): self.processCLItem('0', "guest") self.processCLItem('1', "control") self.processCLItem('2', "public") elif (self.qFile.data['cmd_line']['type'] == "vpcrouter"): self.processCLItem('0', "control") return cs_cmdline.merge(dbag, self.qFile.data)
def processCL(self, dbag): # Convert the ip stuff to an ip object and pass that into cs_ip_merge # "eth0ip": "192.168.56.32", # "eth0mask": "255.255.255.0", self.newData = [] if self.qFile.data["cmd_line"]["type"] == "router": self.processCLItem("0", "guest") self.processCLItem("1", "control") self.processCLItem("2", "public") elif self.qFile.data["cmd_line"]["type"] == "vpcrouter": self.processCLItem("0", "control") elif self.qFile.data["cmd_line"]["type"] == "dhcpsrvr": self.processCLItem("0", "guest") self.processCLItem("1", "control") return cs_cmdline.merge(dbag, self.qFile.data)