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

NBI Component - IETF Network plugin:

- Fixed unitary test data files
parent 0d45dc6c
Loading
Loading
Loading
Loading
+1944 −0

File added.

Preview size limit exceeded, changes collapsed.

+129 −97
Original line number Diff line number Diff line
@@ -458,26 +458,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -501,26 +505,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -544,26 +552,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -587,26 +599,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -630,26 +646,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -673,26 +693,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -716,26 +740,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
@@ -759,26 +787,30 @@
                                "te-delay-metric": 1,
                                "max-link-bandwidth": {
                                    "te-bandwidth": {
                                        "ietf-otn-topology:odulist": [
                                        "ietf-otn-topology:otn": {
                                            "odulist": [
                                                {
                                                    "odu-type": "ietf-layer1-types:ODU0",
                                                "number": 80
                                                    "ts-number": 80
                                                }
                                            ]
                                        }
                                    }
                                },
                                "unreserved-bandwidth": [
                                    {
                                        "priority": 7,
                                        "te-bandwidth": {
                                            "ietf-otn-topology:odulist": [
                                            "ietf-otn-topology:otn": {
                                                "odulist": [
                                                    {
                                                    "number": 80,
                                                        "ts-number": 80,
                                                        "odu-type": "ietf-layer1-types:ODU0"
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
+30 −3
Original line number Diff line number Diff line
@@ -6,9 +6,36 @@
    ],

    "topologies": [
        {"topology_id": {"topology_uuid": {"uuid": "admin"                                }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin"                                },
        {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"},
        {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"}
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}
            },
            "name": "admin"
        },
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}
            },
            "name": "providerId-10-clientId-0-topologyId-1",
            "device_ids": [
                {"device_uuid": {"uuid": "10.0.10.1"}},
                {"device_uuid": {"uuid": "10.0.20.1"}},
                {"device_uuid": {"uuid": "10.0.30.1"}},
                {"device_uuid": {"uuid": "10.0.40.1"}}
            ]
        },
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}
            },
            "name": "providerId-10-clientId-0-topologyId-2",
            "device_ids": [
                {"device_uuid": {"uuid": "10.0.10.1"}},
                {"device_uuid": {"uuid": "10.0.20.1"}},
                {"device_uuid": {"uuid": "10.0.30.1"}},
                {"device_uuid": {"uuid": "10.0.40.1"}}
            ]
        }
    ],

    "devices": [
+30 −3
Original line number Diff line number Diff line
@@ -4,9 +4,36 @@
    ],

    "topologies": [
        {"topology_id": {"topology_uuid": {"uuid": "admin"                                }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin"                                },
        {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"},
        {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"}
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}
            },
            "name": "admin"
        },
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}
            },
            "name": "providerId-10-clientId-0-topologyId-1",
            "device_ids": [
                {"device_uuid": {"uuid": "10.0.10.1"}},
                {"device_uuid": {"uuid": "10.0.20.1"}},
                {"device_uuid": {"uuid": "10.0.30.1"}},
                {"device_uuid": {"uuid": "10.0.40.1"}}
            ]
        },
        {
            "topology_id": {
                "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}
            },
            "name": "providerId-10-clientId-0-topologyId-2",
            "device_ids": [
                {"device_uuid": {"uuid": "10.0.10.1"}},
                {"device_uuid": {"uuid": "10.0.20.1"}},
                {"device_uuid": {"uuid": "10.0.30.1"}},
                {"device_uuid": {"uuid": "10.0.40.1"}}
            ]
        }
    ],

    "devices": [