Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 34 additions & 12 deletions src/pages/Info/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,40 @@ export default function Info() {
<th>接続方式</th>
<td colSpan={2}>{info.service}</td>
</tr>
<tr>
<th>接続NOC</th>
<td colSpan={2}>{info.noc}</td>
</tr>
<tr>
<th>トンネル終端アドレス(貴団体側)</th>
<td colSpan={2}>{info.term_ip}</td>
</tr>
<tr>
<th>トンネル終端アドレス(HomeNOC側)</th>
<td colSpan={2}>{info.noc_ip}</td>
</tr>
{!info.ix && (
<>
<tr>
<th>接続NOC</th>
<td colSpan={2}>{info.noc}</td>
</tr>
<tr>
<th>トンネル終端アドレス(貴団体側)</th>
<td colSpan={2}>{info.term_ip}</td>
</tr>
<tr>
<th>トンネル終端アドレス(HomeNOC側)</th>
<td colSpan={2}>{info.noc_ip}</td>
</tr>
</>
)}
{info.ix && (
<>
<tr>
<th>IX</th>
<td colSpan={2}>{info.ix}</td>
</tr>
<tr>
<th>ピアリングタイプ</th>
<td colSpan={2}>{info.ix_peer_type}</td>
</tr>
{info.ix_peer_type === 'PI/CUG' && info.ix_vlan_id && (
<tr>
<th>VLAN-ID</th>
<td colSpan={2}>{info.ix_vlan_id}</td>
</tr>
)}
</>
)}
<tr>
<th colSpan={3}>当団体との間の境界アドレス</th>
</tr>
Expand Down