fix: The default remote ip prefix is ::/0 if ethertype is IPv6

Use different default remote ip prefix between IPv4 and IPv6

Change-Id: I9f851562da8d8b59cc7ecc51ebeaa285076e1831
This commit is contained in:
xusongfu 2021-12-10 14:18:56 +08:00
parent 979fbfe6e5
commit 62149658da

View File

@ -81,7 +81,7 @@ export const getSelfColumns = (self) => [
title: t('Remote IP Prefix'),
dataIndex: 'remote_ip_prefix',
render: (value, record) =>
value || record.ethertype === 'IPv4' ? '0.0.0.0/0' : '::/0',
value || (record.ethertype === 'IPv4' ? '0.0.0.0/0' : '::/0'),
isHideable: true,
},
{