From af633f2557468446e7b94208b57fcb3cd2deba58 Mon Sep 17 00:00:00 2001 From: Ritchie Vincent Date: Fri, 10 Jan 2020 05:14:14 +0000 Subject: [PATCH] network: security groups ingress and egress tabs (#97) Implements SG ingress/egress tabs Signed-off-by: Rohit Yadav Co-authored-by: Rohit Yadav --- ui/src/config/section/network.js | 8 +- ui/src/views/network/EgressRuleConfigure.vue | 40 -- .../network/IngressEgressRuleConfigure.vue | 509 ++++++++++++++++++ ui/src/views/network/IngressRuleConfigure.vue | 40 -- 4 files changed, 513 insertions(+), 84 deletions(-) delete mode 100644 ui/src/views/network/EgressRuleConfigure.vue create mode 100644 ui/src/views/network/IngressEgressRuleConfigure.vue delete mode 100644 ui/src/views/network/IngressRuleConfigure.vue diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index c4173393af0..ae1f8ddc0bf 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -154,11 +154,11 @@ export default { name: 'details', component: () => import('@/components/view/DetailsTab.vue') }, { - name: 'ingress-rules', - component: () => import('@/views/network/IngressRuleConfigure.vue') + name: 'Ingress Rule', + component: () => import('@/views/network/IngressEgressRuleConfigure.vue') }, { - name: 'egress-rules', - component: () => import('@/views/network/EgressRuleConfigure.vue') + name: 'Egress Rule', + component: () => import('@/views/network/IngressEgressRuleConfigure.vue') }], actions: [ { diff --git a/ui/src/views/network/EgressRuleConfigure.vue b/ui/src/views/network/EgressRuleConfigure.vue deleted file mode 100644 index a48cf4c84b5..00000000000 --- a/ui/src/views/network/EgressRuleConfigure.vue +++ /dev/null @@ -1,40 +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/network/IngressEgressRuleConfigure.vue b/ui/src/views/network/IngressEgressRuleConfigure.vue new file mode 100644 index 00000000000..8d17bba8226 --- /dev/null +++ b/ui/src/views/network/IngressEgressRuleConfigure.vue @@ -0,0 +1,509 @@ +// 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/network/IngressRuleConfigure.vue b/ui/src/views/network/IngressRuleConfigure.vue deleted file mode 100644 index 3c4ed4d64b1..00000000000 --- a/ui/src/views/network/IngressRuleConfigure.vue +++ /dev/null @@ -1,40 +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. - - - - - -