diff --git a/crmsh/ui_corosync.py b/crmsh/ui_corosync.py index 68ea5b707..8ee185f9a 100644 --- a/crmsh/ui_corosync.py +++ b/crmsh/ui_corosync.py @@ -166,6 +166,30 @@ def do_update(self, context, *argv): logger.info("Use \"crm corosync diff\" to show the difference") logger.info("Use \"crm corosync push\" to sync") + def do_add(self, context, *argv): + lm = corosync.LinkManager.load_config_file() + if lm.totem_transport() != 'knet': + logger.error('Corosync is not using knet transport') + return False + try: + args = LinkArgumentParser().parse(argv) + except LinkArgumentParser.SyntaxException as e: + logger.error('%s', str(e)) + print('Usage: link add = ... [options