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

End-to-end test - L2 VPN gNMI OpenConfig:

- Updated TFS service descriptors (VLAN 100 and VLAN 125) tagged and untagged
parent 9433813c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ topology:
        - ip link add link eth1 name eth1.100 type vlan id 100
        - ip addr add 172.16.1.10/24 dev eth1.100
        - ip link set eth1.100 up
        - ip link add link eth1 name eth1.125 type vlan id 125
        - ip addr add 172.16.2.10/24 dev eth1.125
        - ip link set eth1.125 up

    dc2:
      kind: linux
@@ -69,6 +72,9 @@ topology:
        - ip link add link eth1 name eth1.100 type vlan id 100
        - ip addr add 172.16.1.20/24 dev eth1.100
        - ip link set eth1.100 up
        - ip link add link eth1 name eth1.125 type vlan id 125
        - ip addr add 172.16.2.20/24 dev eth1.125
        - ip link set eth1.125 up

  links:
    - endpoints: ["r1:eth2", "r2:eth1"]
+21 −0
Original line number Diff line number Diff line
{
    "services": [
        {
            "service_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "tfs-l2vpn-svc-100"}
            },
            "service_type": "SERVICETYPE_L2NM",
            "service_status": {"service_status": "SERVICESTATUS_PLANNED"},
            "service_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "dc1"}}, "endpoint_uuid": {"uuid": "int"}},
                {"device_id": {"device_uuid": {"uuid": "dc2"}}, "endpoint_uuid": {"uuid": "int"}}
            ],
            "service_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {
                    "resource_key": "/settings",
                    "resource_value": {"vlan_id": 100, "access_vlan_tagged": true}
                }}
            ]}
        }
    ]
}
+21 −0
Original line number Diff line number Diff line
{
    "services": [
        {
            "service_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "tfs-l2vpn-svc-125"}
            },
            "service_type": "SERVICETYPE_L2NM",
            "service_status": {"service_status": "SERVICESTATUS_PLANNED"},
            "service_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "dc1"}}, "endpoint_uuid": {"uuid": "int"}},
                {"device_id": {"device_uuid": {"uuid": "dc2"}}, "endpoint_uuid": {"uuid": "int"}}
            ],
            "service_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {
                    "resource_key": "/settings",
                    "resource_value": {"vlan_id": 125, "access_vlan_tagged": true}
                }}
            ]}
        }
    ]
}