def __init__(self, name, loopback, CR, cluster_id, *args, **kwargs ): dirs = ['/var/log/', '/var/log/quagga', '/var/run', '/var/run/quagga', '/var/run/openvswitch', '/var/run/sshd'] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs ) self.loopback = loopback if cluster_id == "default": cluster_id = "0" cluster_id = int(cluster_id) if CR: cluster_id = cluster_id + 128 extrainfo = '%02x000000' % cluster_id self.dpid = self.loopbackDpid(self.loopback, extrainfo) self.mac = self.loopbackMac(self.loopback,"0200") self.path_ovs = "%s/%s/ovs" %(self.baseDIR, self.name) self.path_quagga = "%s/%s/quagga" %(self.baseDIR, self.name) self.path_fpm = "%s/%s/fpm-of" %(self.baseDIR, self.name) if OSHI.checked == False: self.checkQuagga() if self.OF_V == "OpenFlow13": self.checkOVS() if OSHI.SR == True: self.checkSR() OSHI.checked = True
def __init__(self, name, loopback, CR, cluster_id, *args, **kwargs): dirs = [ '/var/log/', '/var/log/quagga', '/var/run', '/var/run/quagga', '/var/run/openvswitch', '/var/run/sshd' ] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs) self.loopback = loopback if cluster_id == "default": cluster_id = "0" cluster_id = int(cluster_id) if CR: cluster_id = cluster_id + 128 extrainfo = '%02x000000' % cluster_id self.dpid = self.loopbackDpid(self.loopback, extrainfo) self.mac = self.loopbackMac(self.loopback, "0200") self.path_ovs = "%s/%s/ovs" % (self.baseDIR, self.name) self.path_quagga = "%s/%s/quagga" % (self.baseDIR, self.name) self.path_fpm = "%s/%s/fpm-of" % (self.baseDIR, self.name) if OSHI.checked == False: self.checkQuagga() if self.OF_V == "OpenFlow13": self.checkOVS() if OSHI.SR == True: self.checkSR() OSHI.checked = True
def __init__(self, name, loopback, *args, **kwargs): dirs = ['/var/log/', '/var/log/quagga', '/var/run', '/var/run/quagga'] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs) self.loopback = loopback
def __init__(self, name, *args, **kwargs): dirs = ['/var/log/', '/var/run', '/var/run/openvswitch'] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs) self.path_ovs = "%s/%s/ovs" % (self.baseDIR, self.name)
def __init__(self, name, loopback, *args, **kwargs ): dirs = ['/var/log/', '/var/log/quagga', '/var/run', '/var/run/quagga'] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs ) self.loopback = loopback
def __init__(self, name, *args, **kwargs ): dirs = ['/var/log/', '/var/run', '/var/run/openvswitch'] HostWithPrivateDirs.__init__(self, name, privateDirs=dirs, *args, **kwargs ) self.path_ovs = "%s/%s/ovs" %(self.baseDIR, self.name)