]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Remove create_router_ospf6
authorDonald Sharp <sharpd@nvidia.com>
Wed, 24 Nov 2021 12:04:46 +0000 (07:04 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 24 Nov 2021 12:05:19 +0000 (07:05 -0500)
This function is never used, remove.  Developer can use
create_router_ospf instead

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/lib/ospf.py

index 809d38d2acc1fd37db49d1b558beb24af107ddd5..52872ae1a1558bbf3cd4d470effbfdfb5838c997 100644 (file)
@@ -334,69 +334,6 @@ def __create_ospf_global(tgen, input_dict, router, build, load_config, ospf):
     return config_data
 
 
-def create_router_ospf6(
-    tgen, topo=None, input_dict=None, build=False, load_config=True
-):
-    """
-    API to configure ospf on router
-
-    Parameters
-    ----------
-    * `tgen` : Topogen object
-    * `topo` : json file data
-    * `input_dict` : Input dict data, required when configuring from testcase
-    * `build` : Only for initial setup phase this is set as True.
-
-    Usage
-    -----
-    input_dict = {
-        "r1": {
-            "ospf6": {
-                "router_id": "22.22.22.22",
-        }
-    }
-
-    Returns
-    -------
-    True or False
-    """
-    logger.debug("Entering lib API: create_router_ospf6()")
-    result = False
-
-    if topo is None:
-        topo = tgen.json_topo
-
-    if not input_dict:
-        input_dict = deepcopy(topo)
-    else:
-        topo = topo["routers"]
-        input_dict = deepcopy(input_dict)
-
-    config_data_dict = {}
-
-    for router in input_dict.keys():
-        if "ospf6" not in input_dict[router]:
-            logger.debug("Router %s: 'ospf6' not present in input_dict", router)
-            continue
-
-        config_data = __create_ospf_global(
-            tgen, input_dict, router, build, load_config, "ospf6"
-        )
-        if config_data:
-            config_data_dict[router] = config_data
-
-    try:
-        result = create_common_configurations(
-            tgen, config_data_dict, "ospf6", build, load_config
-        )
-    except InvalidCLIError:
-        logger.error("create_router_ospf6", exc_info=True)
-        result = False
-
-    logger.debug("Exiting lib API: create_router_ospf6()")
-    return result
-
-
 def config_ospf_interface(
     tgen, topo=None, input_dict=None, build=False, load_config=True
 ):