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

This commit is contained in:
Zuul 2021-12-09 07:50:55 +00:00 committed by Gerrit Code Review
commit 979fbfe6e5

View File

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