X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FUtilLibrary.py;h=6f65fd2061595c2be806a6bebeacd36dce56d465;hb=f5be5440e8ef95263193ef4d26958198722e4e44;hp=d567b08130972dfdb5396e05ee09a0a6b9f6274f;hpb=7e5a8e3140f4ae6ae45e05047650617b3f85253a;p=integration%2Ftest.git diff --git a/csit/libraries/UtilLibrary.py b/csit/libraries/UtilLibrary.py index d567b08130..6f65fd2061 100644 --- a/csit/libraries/UtilLibrary.py +++ b/csit/libraries/UtilLibrary.py @@ -264,13 +264,13 @@ def isolate_controller(controllers, username, password, isolated): iso_result = "pass" for controller in controllers: controller_regex_string = ( - "[\s\S]*" + isolated_controller + " *" + controller + "[\s\S]*" + r"[\s\S]*" + isolated_controller + " *" + controller + r"[\s\S]*" ) controller_regex = re.compile(controller_regex_string) if not controller_regex.match(ip_tables): iso_result = ip_tables controller_regex_string = ( - "[\s\S]*" + controller + " *" + isolated_controller + "[\s\S]*" + r"[\s\S]*" + controller + " *" + isolated_controller + r"[\s\S]*" ) controller_regex = re.compile(controller_regex_string) if not controller_regex.match(ip_tables): @@ -314,13 +314,13 @@ def rejoin_controller(controllers, username, password, isolated): iso_result = "pass" for controller in controllers: controller_regex_string = ( - "[\s\S]*" + isolated_controller + " *" + controller + "[\s\S]*" + r"[\s\S]*" + isolated_controller + " *" + controller + r"[\s\S]*" ) controller_regex = re.compile(controller_regex_string) if controller_regex.match(ip_tables): iso_result = ip_tables controller_regex_string = ( - "[\s\S]*" + controller + " *" + isolated_controller + "[\s\S]*" + r"[\s\S]*" + controller + " *" + isolated_controller + r"[\s\S]*" ) controller_regex = re.compile(controller_regex_string) if controller_regex.match(ip_tables):