+
+
+
+
+ {{ nsp.name }}
+
+
+
@@ -41,7 +49,7 @@ import Status from '@/components/widgets/Status'
import IpRangesTab from './IpRangesTab'
export default {
- name: 'NspTab',
+ name: 'NetworkTab',
components: {
IpRangesTab,
Status
@@ -59,6 +67,7 @@ export default {
data () {
return {
traffictypes: [],
+ nsps: [],
fetchLoading: false
}
},
@@ -85,6 +94,18 @@ export default {
}).finally(() => {
this.fetchLoading = false
})
+
+ this.fetchLoading = true
+ api('listNetworkServiceProviders', { physicalnetworkid: this.resource.id }).then(json => {
+ this.nsps = json.listnetworkserviceprovidersresponse.networkserviceprovider
+ }).catch(error => {
+ this.$notification.error({
+ message: 'Request Failed',
+ description: error.response.headers['x-description']
+ })
+ }).finally(() => {
+ this.fetchLoading = false
+ })
}
}
}
diff --git a/ui/src/views/infra/traffic/DedicatedVLANTab.vue b/ui/src/views/infra/traffic/DedicatedVLANTab.vue
deleted file mode 100644
index 992f81af6ac..00000000000
--- a/ui/src/views/infra/traffic/DedicatedVLANTab.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-
-
- listDedicatedGuestVlanRanges here
-
-
-
-
-
-
diff --git a/ui/src/views/infra/traffic/NspTab.vue b/ui/src/views/infra/traffic/NspTab.vue
deleted file mode 100644
index f47c85fe705..00000000000
--- a/ui/src/views/infra/traffic/NspTab.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-
-
-
-
-
- {{ nsp.name }}
-
-
-
-
-
-
-
-