Commit 2051a61b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Hackfest - ContainerLab:

- Add dc-2-dc-l3-service.json descriptor
parent c2c0f3c1
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
    "services": [
        {
            "service_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "dc-2-dc-l3-svc"}
            },
            "service_type": 1,
            "service_status": {"service_status": 1},
            "service_endpoint_ids": [
                {"device_id":{"device_uuid":{"uuid":"DC1"}},"endpoint_uuid":{"uuid":"int"}},
                {"device_id":{"device_uuid":{"uuid":"DC2"}},"endpoint_uuid":{"uuid":"int"}}
            ],
            "service_constraints": [],
            "service_config": {"config_rules": [
                {"action": 1, "custom": {"resource_key": "/device[SRL1]/settings", "resource_value": {
                    "static_routes": [{"prefix": "172.16.2.0/24", "next_hop": "172.0.0.2"}]
                }}},
                {"action": 1, "custom": {"resource_key": "/device[SRL1]/endpoint[ethernet-1/1]/settings", "resource_value": {
                    "ipv4_address": "172.0.0.1", "ipv4_prefix": 30, "sub_interface_index": 0
                }}},
                {"action": 1, "custom": {"resource_key": "/device[SRL1]/endpoint[ethernet-1/2]/settings", "resource_value": {
                    "ipv4_address": "172.16.1.1", "ipv4_prefix": 24, "sub_interface_index": 0
                }}},

                {"action": 1, "custom": {"resource_key": "/device[SRL2]/settings", "resource_value": {
                    "static_routes": [{"prefix": "172.16.1.0/24", "next_hop": "172.0.0.1"}]
                }}},
                {"action": 1, "custom": {"resource_key": "/device[SRL2]/endpoint[ethernet-1/1]/settings", "resource_value": {
                    "ipv4_address": "172.0.0.2", "ipv4_prefix": 30, "sub_interface_index": 0
                }}},
                {"action": 1, "custom": {"resource_key": "/device[SRL2]/endpoint[ethernet-1/2]/settings", "resource_value": {
                    "ipv4_address": "172.16.2.1", "ipv4_prefix": 24, "sub_interface_index": 0
                }}}
            ]}
        }
    ]
}