mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Changes to replace clagid setting in the bonding driver with -
1. clag_enable flag in the bonding driver 2. And clagid in clagd Ticket: CM-4091 Reviewed By: Testing Done: yes 1. Two new commands have been introduced in clagctl - setclagid and showclagid. These commands will be used by ifupdown2 to set and read/check the clagid. 2. In addition a bit will be maintained per-bond in the bonding driver to indicate if a bond is a CLAG bond. (cherry picked from commit cb160bad45d330fe5f544d0d9a40c1c77b9b563f)
This commit is contained in:
@@ -36,6 +36,14 @@ class utilsBase(object):
|
||||
self.PERFMODE = kargs.get('perfmode', False)
|
||||
self.CACHE = kargs.get('cache', False)
|
||||
|
||||
def is_process_running(self, procName):
|
||||
try:
|
||||
self.exec_command('/bin/pidof -x %s' % procName)
|
||||
except:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
def exec_commandl(self, cmdl, cmdenv=None):
|
||||
""" Executes command """
|
||||
|
||||
|
Reference in New Issue
Block a user