Revision 9e33896b lib/config.py
b/lib/config.py | ||
---|---|---|
1420 | 1420 |
self._WriteConfig() |
1421 | 1421 |
|
1422 | 1422 |
@locking.ssynchronized(_config_lock, shared=1) |
1423 |
def GetDRBDHelper(self): |
|
1424 |
"""Return DRBD usermode helper. |
|
1425 |
|
|
1426 |
""" |
|
1427 |
return self._config_data.cluster.drbd_usermode_helper |
|
1428 |
|
|
1429 |
@locking.ssynchronized(_config_lock) |
|
1430 |
def SetDRBDHelper(self, drbd_helper): |
|
1431 |
"""Set DRBD usermode helper. |
|
1432 |
|
|
1433 |
""" |
|
1434 |
self._config_data.cluster.drbd_usermode_helper = drbd_helper |
|
1435 |
self._config_data.cluster.serial_no += 1 |
|
1436 |
self._WriteConfig() |
|
1437 |
|
|
1438 |
@locking.ssynchronized(_config_lock, shared=1) |
|
1423 | 1439 |
def GetMACPrefix(self): |
1424 | 1440 |
"""Return the mac prefix. |
1425 | 1441 |
|
Also available in: Unified diff