Commit 860dfe22 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Dataplane-in-a-box descriptors:

- Added 3rd router
- Generalized paths in scripts
parent aec5fbd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,5 +13,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cd /home/tfs/tfs-ctrl/dataplane-in-a-box
cd /home/$USER/tfs-ctrl/dataplane-in-a-box
sudo containerlab deploy --topo arista.clab.yml
+1 −1
Original line number Diff line number Diff line
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cd /home/tfs/tfs-ctrl/dataplane-in-a-box
cd /home/$USER/tfs-ctrl/dataplane-in-a-box
sudo containerlab destroy --topo arista.clab.yml
sudo rm -rf clab-arista/ .arista.clab.yml.bak
+1 −1
Original line number Diff line number Diff line
@@ -13,5 +13,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cd /home/tfs/tfs-ctrl/dataplane-in-a-box
cd /home/$USER/tfs-ctrl/dataplane-in-a-box
sudo containerlab inspect --topo arista.clab.yml
+34 −8
Original line number Diff line number Diff line
@@ -49,21 +49,47 @@
                    "username": "admin", "password": "admin", "use_tls": false
                }}}
            ]}
        },
        {
            "device_id": {"device_uuid": {"uuid": "r3"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_GNMI_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "172.20.20.103"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "6030"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": {
                    "username": "admin", "password": "admin", "use_tls": false
                }}}
            ]}
        }
    ],
    "links": [
        {
            "link_id": {"link_uuid": {"uuid": "r1/Ethernet1==r2/Ethernet1"}},
            "link_id": {"link_uuid": {"uuid": "r1/Ethernet2==r2/Ethernet1"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet1"}},
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet2"}},
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet1"}}
            ]
        },
        {
            "link_id": {"link_uuid": {"uuid": "r2/Ethernet1==r1/Ethernet1"}},
            "link_id": {"link_uuid": {"uuid": "r2/Ethernet1==r1/Ethernet2"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet1"}},
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet1"}}
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet2"}}
            ]
        },

        {
            "link_id": {"link_uuid": {"uuid": "r2/Ethernet3==r3/Ethernet2"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet3"}},
                {"device_id": {"device_uuid": {"uuid": "r3"}}, "endpoint_uuid": {"uuid": "Ethernet2"}}
            ]
        },
        {
            "link_id": {"link_uuid": {"uuid": "r3/Ethernet2==r2/Ethernet3"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r3"}}, "endpoint_uuid": {"uuid": "Ethernet2"}},
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet3"}}
            ]
        },

@@ -83,17 +109,17 @@
        },

        {
            "link_id": {"link_uuid": {"uuid": "r2/Ethernet10==dc2/eth1"}},
            "link_id": {"link_uuid": {"uuid": "r3/Ethernet10==dc2/eth1"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet10"}},
                {"device_id": {"device_uuid": {"uuid": "r3"}}, "endpoint_uuid": {"uuid": "Ethernet10"}},
                {"device_id": {"device_uuid": {"uuid": "dc2"}}, "endpoint_uuid": {"uuid": "eth1"}}
            ]
        },
        {
            "link_id": {"link_uuid": {"uuid": "dc2/eth1==r2/Ethernet10"}},
            "link_id": {"link_uuid": {"uuid": "dc2/eth1==r3/Ethernet10"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "dc2"}}, "endpoint_uuid": {"uuid": "eth1"}},
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet10"}}
                {"device_id": {"device_uuid": {"uuid": "r3"}}, "endpoint_uuid": {"uuid": "Ethernet10"}}
            ]
        }
    ]