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

This commit is contained in:
Zuul 2021-12-10 07:11:40 +00:00 committed by Gerrit Code Review
commit 5d4e204ebe

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,
},
{