diff --git a/ui/docs/api/apis.remaining b/ui/docs/api/apis.remaining index db902561f11..0618e4e1efd 100644 --- a/ui/docs/api/apis.remaining +++ b/ui/docs/api/apis.remaining @@ -1,6 +1,5 @@ addNetworkServiceProvider addResourceDetail -addTrafficType assignCertToLoadBalancer configureInternalLoadBalancerElement configureVirtualRouterElement @@ -9,7 +8,6 @@ createLoadBalancer createManagementNetworkIpRange createNetworkACL createNetworkACLList -createPhysicalNetwork createPortableIpRange createPrivateGateway createSnapshotFromVMSnapshot @@ -18,7 +16,6 @@ createStorageNetworkIpRange createVlanIpRange createVpnConnection createVpnGateway -dedicateGuestVlanRange dedicatePublicIpRange deleteLBHealthCheckPolicy deleteLoadBalancer @@ -35,7 +32,6 @@ deleteVpnConnection deleteVpnGateway findStoragePoolsForMigration listAffinityGroupTypes -listDedicatedGuestVlanRanges listDeploymentPlanners listHostTags listInternalLoadBalancerElements @@ -52,7 +48,6 @@ listSupportedNetworkServices listVirtualRouterElements listVlanIpRanges moveNetworkAclItem -releaseDedicatedGuestVlanRange releasePublicIpRange resetVpnConnection startInternalLoadBalancerVM diff --git a/ui/src/config/section/infra/phynetworks.js b/ui/src/config/section/infra/phynetworks.js index eaef111e2a6..0edddb95021 100644 --- a/ui/src/config/section/infra/phynetworks.js +++ b/ui/src/config/section/infra/phynetworks.js @@ -27,20 +27,13 @@ export default { name: 'details', component: () => import('@/components/view/DetailsTab.vue') }, { - name: 'Traffic Types', - component: () => import('@/views/infra/traffic/TrafficTypesTab.vue') - }, { - name: 'Network Service Providers', - component: () => import('@/views/infra/traffic/NspTab.vue') + name: 'Network', + component: () => import('@/views/infra/network/NetworkTab.vue') }, { name: 'Dedicated VLAN/VNI Ranges', - component: () => import('@/views/infra/traffic/DedicatedVLANTab.vue') + component: () => import('@/views/infra/network/DedicatedVLANTab.vue') }], related: [{ - name: 'traffictype', - title: 'Traffic Types', - param: 'physicalnetworkid' - }, { name: 'guestnetwork', title: 'Networks', param: 'physicalnetworkid' diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index aad6ee1bb0e..4406a9a715d 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -271,7 +271,9 @@ export default { provide: function () { return { parentFetchData: this.fetchData, - parentToggleLoading: this.toggleLoading + parentToggleLoading: this.toggleLoading, + parentStartLoading: this.startLoading, + parentFinishLoading: this.finishLoading } }, data () { @@ -751,6 +753,12 @@ export default { }, toggleLoading () { this.loading = !this.loading + }, + startLoading () { + this.loading = true + }, + finishLoading () { + this.loading = false } } } diff --git a/ui/src/views/infra/network/DedicatedVLANTab.vue b/ui/src/views/infra/network/DedicatedVLANTab.vue new file mode 100644 index 00000000000..eaa0dc387eb --- /dev/null +++ b/ui/src/views/infra/network/DedicatedVLANTab.vue @@ -0,0 +1,384 @@ +// 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. + + + + + + diff --git a/ui/src/views/infra/traffic/IpRangesTab.vue b/ui/src/views/infra/network/IpRangesTab.vue similarity index 100% rename from ui/src/views/infra/traffic/IpRangesTab.vue rename to ui/src/views/infra/network/IpRangesTab.vue diff --git a/ui/src/views/infra/traffic/TrafficTypesTab.vue b/ui/src/views/infra/network/NetworkTab.vue similarity index 75% rename from ui/src/views/infra/traffic/TrafficTypesTab.vue rename to ui/src/views/infra/network/NetworkTab.vue index a38963c6f5b..7181bfc0841 100644 --- a/ui/src/views/infra/traffic/TrafficTypesTab.vue +++ b/ui/src/views/infra/network/NetworkTab.vue @@ -17,7 +17,7 @@ @@ -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. - - - - - - 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. - - - - - -