From 095006b426296f59ea13325291d0c1b6c272b7f3 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Mon, 5 Jul 2021 11:33:56 +0800 Subject: [PATCH] feat: Add float ip address column Add float ip address column in virtualAdapter Change-Id: Ib31ea4b0f1394a5fff05747f7c696aeccf541d80 --- src/pages/network/containers/VirtualAdapter/index.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/network/containers/VirtualAdapter/index.jsx b/src/pages/network/containers/VirtualAdapter/index.jsx index 7211c596..734ba16d 100644 --- a/src/pages/network/containers/VirtualAdapter/index.jsx +++ b/src/pages/network/containers/VirtualAdapter/index.jsx @@ -163,7 +163,7 @@ export default class VirtualAdapter extends Base { <> {item.device_owner} {item.device_owner &&
} - {item.device_id} + {item.device_id || '-'} ); }, @@ -199,6 +199,14 @@ export default class VirtualAdapter extends Base { dataIndex: 'mac_address', isHideable: true, }, + { + title: t('Floating IP Address'), + dataIndex: 'associatedDetail', + isHideable: true, + render: (value) => + value && value.length ? value[0].floating_ip_address : '-', + sorter: false, + }, // { // title: t('Associated Resources'), // dataIndex: 'device_owner',