Commit 20279c5f authored by Waleed Akbar's avatar Waleed Akbar
Browse files

Add deployment and teardown scripts for MWC26-F5G-A components

- Created deploy-specs-e2e.sh and deploy-specs-ip.sh for building and deploying TeraFlowSDN components.
- Added dummy scripts for L3VPN request and delete operations to simulate AGG-Controller behavior.
- Implemented log dumping script to collect logs from various services based on hostname.
- Added provisioning scripts for multiple network slices with corresponding JSON data files.
- Included telemetry subscription and deletion scripts for managing telemetry data.
- Introduced teardown scripts for cleaning up network slices after testing.
parent 175fc9fc
Loading
Loading
Loading
Loading
+185 −0
Original line number Diff line number Diff line
{
    "ietf-l3vpn-svc:l3vpn-svc": {
        "sites": {
            "site": [
                {
                    "devices": {
                        "device": [
                            {
                                "device-id": "P-PE1",
                                "location": "access"
                            }
                        ]
                    },
                    "locations": {
                        "location": [
                            {
                                "location-id": "access"
                            }
                        ]
                    },
                    "management": {
                        "type": "ietf-l3vpn-svc:provider-managed"
                    },
                    "routing-protocols": {
                        "routing-protocol": [
                            {
                                "static": {
                                    "cascaded-lan-prefixes": {
                                        "ipv4-lan-prefixes": [
                                            {
                                                "lan": "172.1.101.22/24",
                                                "lan-tag": "21",
                                                "next-hop": "128.32.44.254"
                                            }
                                        ]
                                    }
                                },
                                "type": "ietf-l3vpn-svc:static"
                            }
                        ]
                    },
                    "site-id": "site_access",
                    "site-network-accesses": {
                        "site-network-access": [
                            {
                                "device-reference": "P-PE1",
                                "ip-connection": {
                                    "ipv4": {
                                        "address-allocation-type": "ietf-l3vpn-svc:static-address",
                                        "addresses": {
                                            "customer-address": "128.32.44.254",
                                            "prefix-length": "24",
                                            "provider-address": "128.32.44.254"
                                        }
                                    }
                                },
                                "service": {
                                    "qos": {
                                        "qos-profile": {
                                            "classes": {
                                                "class": [
                                                    {
                                                        "bandwidth": {
                                                            "guaranteed-bw-percent": 100
                                                        },
                                                        "class-id": "qos-realtime",
                                                        "direction": "ietf-l3vpn-svc:both",
                                                        "latency": {
                                                            "latency-boundary": 20
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "svc-input-bandwidth": 1000000000,
                                    "svc-mtu": 1500,
                                    "svc-output-bandwidth": 5000000000
                                },
                                "site-network-access-id": "200",
                                "site-network-access-type": "ietf-l3vpn-svc:multipoint",
                                "vpn-attachment": {
                                    "site-role": "ietf-l3vpn-svc:hub-role",
                                    "vpn-id": "slice25"
                                }
                            }
                        ]
                    }
                },
                {
                    "devices": {
                        "device": [
                            {
                                "device-id": "P-PE2",
                                "location": "cloud"
                            }
                        ]
                    },
                    "locations": {
                        "location": [
                            {
                                "location-id": "cloud"
                            }
                        ]
                    },
                    "management": {
                        "type": "ietf-l3vpn-svc:provider-managed"
                    },
                    "routing-protocols": {
                        "routing-protocol": [
                            {
                                "static": {
                                    "cascaded-lan-prefixes": {
                                        "ipv4-lan-prefixes": [
                                            {
                                                "lan": "172.16.104.221/24",
                                                "lan-tag": "201",
                                                "next-hop": "172.10.44.254"
                                            }
                                        ]
                                    }
                                },
                                "type": "ietf-l3vpn-svc:static"
                            }
                        ]
                    },
                    "site-id": "site_cloud",
                    "site-network-accesses": {
                        "site-network-access": [
                            {
                                "device-reference": "P-PE2",
                                "ip-connection": {
                                    "ipv4": {
                                        "address-allocation-type": "ietf-l3vpn-svc:static-address",
                                        "addresses": {
                                            "customer-address": "172.10.44.254",
                                            "prefix-length": "24",
                                            "provider-address": "172.10.44.254"
                                        }
                                    }
                                },
                                "service": {
                                    "qos": {
                                        "qos-profile": {
                                            "classes": {
                                                "class": [
                                                    {
                                                        "bandwidth": {
                                                            "guaranteed-bw-percent": 100
                                                        },
                                                        "class-id": "qos-realtime",
                                                        "direction": "ietf-l3vpn-svc:both",
                                                        "latency": {
                                                            "latency-boundary": 10
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "svc-input-bandwidth": 5000000000,
                                    "svc-mtu": 1500,
                                    "svc-output-bandwidth": 1000000000
                                },
                                "site-network-access-id": "200",
                                "site-network-access-type": "ietf-l3vpn-svc:multipoint",
                                "vpn-attachment": {
                                    "site-role": "ietf-l3vpn-svc:spoke-role",
                                    "vpn-id": "slice25"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "vpn-services": {
            "vpn-service": [
                {
                    "vpn-id": "slice25"
                }
            ]
        }
    }
}
+118 −0
Original line number Diff line number Diff line
{
    "slice-service": [
        {
            "id": "initial_background_slice",
            "description": "network slice, PC1-VM1 - using IP transport network",
            "sdps": {
                "sdp": [
                    {
                        "id": "1",
                        "node-id": "ONT1",
                        "sdp-ip-address": ["172.16.61.10"],
                        "service-match-criteria": {"match-criterion": [{
                            "index": 1,
                            "match-type": [
                                {"type": "ietf-network-slice-service:vlan", "value": ["21"]},
                                {"type": "ietf-network-slice-service:source-ip-prefix", "value": ["172.16.104.221/24"]},
                                {"type": "ietf-network-slice-service:source-tcp-port", "value": ["10500"]},
                                {"type": "ietf-network-slice-service:destination-ip-prefix", "value": ["172.1.101.22/24"]},
                                {"type": "ietf-network-slice-service:destination-tcp-port", "value": ["10200"]}
                            ],
                            "target-connection-group-id": "line1"
                        }]},
                        "attachment-circuits": {"attachment-circuit": [{
                            "id": "AC ONT1",
                            "description": "AC ONT1 connected to PC1",
                            "ac-node-id": "ONT1",
                            "ac-tp-id": "200"
                        }]}
                    },
                    {
                        "id": "2",
                        "node-id": "POP2",
                        "sdp-ip-address": ["172.16.204.221"],
                        "service-match-criteria": {"match-criterion": [{
                            "index": 1,
                            "match-type": [
                                {"type": "ietf-network-slice-service:vlan", "value": ["201"]},
                                {"type": "ietf-network-slice-service:source-ip-prefix", "value": ["172.1.101.22/24"]},
                                {"type": "ietf-network-slice-service:source-tcp-port", "value": ["10200"]},
                                {"type": "ietf-network-slice-service:destination-ip-prefix", "value": ["172.16.104.221/24"]},
                                {"type": "ietf-network-slice-service:destination-tcp-port", "value": ["10500"]}
                            ],
                            "target-connection-group-id": "line1"
                        }]},
                        "attachment-circuits": {"attachment-circuit": [{
                            "id": "AC POP2 to VM1",
                            "description": "AC POP2 connected to VM1",
                            "ac-node-id": "POP2",
                            "ac-tp-id": "200"
                        }]}
                    }
                ]
            },
            "connection-groups": {
                "connection-group": [
                    {
                        "id": "line1",
                        "connectivity-type": "point-to-point",
                        "connectivity-construct": [
                            {
                                "id": 1,
                                "p2p-sender-sdp": "1",
                                "p2p-receiver-sdp": "2",
                                "service-slo-sle-policy": {
                                    "slo-policy": {
                                        "metric-bound": [
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                                                "metric-unit": "milliseconds",
                                                "bound": "20"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                                                "metric-unit": "Mbps",
                                                "bound": "1000"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                                                "metric-unit": "percentage",
                                                "percentile-value": "0.01"
                                            }
                                        ]
                                    }
                                }
                            },
                            {
                                "id": 2,
                                "p2p-sender-sdp": "2",
                                "p2p-receiver-sdp": "1",
                                "service-slo-sle-policy": {
                                    "slo-policy": {
                                        "metric-bound": [
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                                                "metric-unit": "milliseconds",
                                                "bound": "10"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                                                "metric-unit": "Mbps",
                                                "bound": "5000"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                                                "metric-unit": "percentage",
                                                "percentile-value": "0.01"
                                            }
                                        ]
                                    }
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}
 No newline at end of file
+118 −0
Original line number Diff line number Diff line
{
    "slice-service": [
        {
            "id": "game_slice_on_ip_transport",
            "description": "network slice, PC1-VM1 - using IP transport network",
            "sdps": {
                "sdp": [
                    {
                        "id": "1",
                        "node-id": "ONT1",
                        "sdp-ip-address": ["172.16.61.10"],
                        "service-match-criteria": {"match-criterion": [{
                            "index": 1,
                            "match-type": [
                                {"type": "ietf-network-slice-service:vlan", "value": ["21"]},
                                {"type": "ietf-network-slice-service:source-ip-prefix", "value": ["172.16.104.221/24"]},
                                {"type": "ietf-network-slice-service:source-tcp-port", "value": ["10500"]},
                                {"type": "ietf-network-slice-service:destination-ip-prefix", "value": ["172.1.101.22/24"]},
                                {"type": "ietf-network-slice-service:destination-tcp-port", "value": ["10200"]}
                            ],
                            "target-connection-group-id": "line1"
                        }]},
                        "attachment-circuits": {"attachment-circuit": [{
                            "id": "AC ONT1",
                            "description": "AC ONT1 connected to PC1",
                            "ac-node-id": "ONT1",
                            "ac-tp-id": "200"
                        }]}
                    },
                    {
                        "id": "2",
                        "node-id": "POP2",
                        "sdp-ip-address": ["172.16.204.221"],
                        "service-match-criteria": {"match-criterion": [{
                            "index": 1,
                            "match-type": [
                                {"type": "ietf-network-slice-service:vlan", "value": ["201"]},
                                {"type": "ietf-network-slice-service:source-ip-prefix", "value": ["172.1.101.22/24"]},
                                {"type": "ietf-network-slice-service:source-tcp-port", "value": ["10200"]},
                                {"type": "ietf-network-slice-service:destination-ip-prefix", "value": ["172.16.104.221/24"]},
                                {"type": "ietf-network-slice-service:destination-tcp-port", "value": ["10500"]}
                            ],
                            "target-connection-group-id": "line1"
                        }]},
                        "attachment-circuits": {"attachment-circuit": [{
                            "id": "AC POP2 to VM1",
                            "description": "AC POP2 connected to VM1",
                            "ac-node-id": "POP2",
                            "ac-tp-id": "200"
                        }]}
                    }
                ]
            },
            "connection-groups": {
                "connection-group": [
                    {
                        "id": "line1",
                        "connectivity-type": "point-to-point",
                        "connectivity-construct": [
                            {
                                "id": 1,
                                "p2p-sender-sdp": "1",
                                "p2p-receiver-sdp": "2",
                                "service-slo-sle-policy": {
                                    "slo-policy": {
                                        "metric-bound": [
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                                                "metric-unit": "milliseconds",
                                                "bound": "20"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                                                "metric-unit": "Mbps",
                                                "bound": "1000"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                                                "metric-unit": "percentage",
                                                "percentile-value": "0.01"
                                            }
                                        ]
                                    }
                                }
                            },
                            {
                                "id": 2,
                                "p2p-sender-sdp": "2",
                                "p2p-receiver-sdp": "1",
                                "service-slo-sle-policy": {
                                    "slo-policy": {
                                        "metric-bound": [
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                                                "metric-unit": "milliseconds",
                                                "bound": "10"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                                                "metric-unit": "Mbps",
                                                "bound": "5000"
                                            },
                                            {
                                                "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                                                "metric-unit": "percentage",
                                                "percentile-value": "0.01"
                                            }
                                        ]
                                    }
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}
 No newline at end of file
+118 −0

File added.

Preview size limit exceeded, changes collapsed.

+118 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading