From 1b5c926ea07a822299aaaba0472d879e07915be6 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 27 Jan 2020 16:00:03 +0530 Subject: [PATCH] network: ACL list views and actions for VPC Signed-off-by: Rohit Yadav --- ui/src/config/section/network.js | 30 ++++++++- ui/src/views/network/AclListRulesTab.vue | 82 +++++++++++++++++++++++ ui/src/views/network/VpcTiers.vue | 40 ----------- ui/src/views/network/VpcTiersTab.vue | 84 ++++++++++++++++++++++++ 4 files changed, 195 insertions(+), 41 deletions(-) create mode 100644 ui/src/views/network/AclListRulesTab.vue delete mode 100644 ui/src/views/network/VpcTiers.vue create mode 100644 ui/src/views/network/VpcTiersTab.vue diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index e1f57cc94c3..9ca4fd03c8f 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -152,7 +152,7 @@ export default { component: () => import('@/components/view/DetailsTab.vue') }, { name: 'Tiers', - component: () => import('@/views/network/VpcTiers.vue') + component: () => import('@/views/network/VpcTiersTab.vue') }], actions: [ { @@ -326,7 +326,35 @@ export default { permission: ['listNetworkACLLists'], columns: ['name', 'description', 'id'], details: ['name', 'description', 'id'], + tabs: [{ + name: 'details', + component: () => import('@/components/view/DetailsTab.vue') + }, { + name: 'ACL List Rules', + component: () => import('@/views/network/AclListRulesTab.vue'), + show: () => true + }], actions: [ + { + api: 'createNetworkACLList', + icon: 'plus', + label: 'Add ACL List', + listView: true, + args: ['name', 'description', 'vpcid'] + }, + { + api: 'updateNetworkACLList', + icon: 'edit', + label: 'Edit ACL List', + dataView: true, + args: ['name', 'description'] + }, + { + api: 'deleteNetworkACLList', + icon: 'delete', + label: 'Delete ACL List', + dataView: true + } ] }, { diff --git a/ui/src/views/network/AclListRulesTab.vue b/ui/src/views/network/AclListRulesTab.vue new file mode 100644 index 00000000000..bb35287f6c0 --- /dev/null +++ b/ui/src/views/network/AclListRulesTab.vue @@ -0,0 +1,82 @@ +// 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/VpcTiers.vue b/ui/src/views/network/VpcTiers.vue deleted file mode 100644 index e3bb16d35af..00000000000 --- a/ui/src/views/network/VpcTiers.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/VpcTiersTab.vue b/ui/src/views/network/VpcTiersTab.vue new file mode 100644 index 00000000000..f3da4676843 --- /dev/null +++ b/ui/src/views/network/VpcTiersTab.vue @@ -0,0 +1,84 @@ +// 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. + + + + + +