diff --git a/src/interface.ts b/src/interface.ts index 2961c3e..37948cd 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -161,6 +161,9 @@ export interface InfosData { noc: string noc_ip: string term_ip: string + ix?: string + ix_peer_type?: string + ix_vlan_id?: string link_v4_our: string link_v4_your: string link_v6_our: string diff --git a/src/pages/Info/Info.tsx b/src/pages/Info/Info.tsx index 5adf245..6283665 100644 --- a/src/pages/Info/Info.tsx +++ b/src/pages/Info/Info.tsx @@ -147,18 +147,40 @@ export default function Info() { 接続方式 {info.service} - - 接続NOC - {info.noc} - - - トンネル終端アドレス(貴団体側) - {info.term_ip} - - - トンネル終端アドレス(HomeNOC側) - {info.noc_ip} - + {!info.ix && ( + <> + + 接続NOC + {info.noc} + + + トンネル終端アドレス(貴団体側) + {info.term_ip} + + + トンネル終端アドレス(HomeNOC側) + {info.noc_ip} + + + )} + {info.ix && ( + <> + + IX + {info.ix} + + + ピアリングタイプ + {info.ix_peer_type} + + {info.ix_peer_type === 'PI/CUG' && info.ix_vlan_id && ( + + VLAN-ID + {info.ix_vlan_id} + + )} + + )} 当団体との間の境界アドレス