Commit e24cab3a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component - IETF L3VPN Service Handler:

- Fix operation type when creating config rules for device component
parent 76132fd1
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -259,10 +259,10 @@ def setup_config_rules(
            "/service[{:s}]/IETFL3VPN".format(service_uuid),
            l3_vpn_data_model,
        ),
        #json_config_rule_set(
        #    "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
        #    {"type": operation_type},
        #),
        json_config_rule_set(
            "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
            {"type": operation_type},
        ),
    ]

    return json_config_rules
@@ -274,10 +274,10 @@ def teardown_config_rules(service_uuid: str) -> List[Dict]:
            "/service[{:s}]/IETFL3VPN".format(service_uuid),
            {"id": service_uuid},
        ),
        #json_config_rule_delete(
        #    "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
        #    {},
        #),
        json_config_rule_delete(
            "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
            {"type": "delete"},
        ),
    ]
    return json_config_rules