Skip to content

Commit 0927273

Browse files
committed
WIP: pkt translation enrichment
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent b7fdf62 commit 0927273

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

web/src/api/ipfix.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ export interface Fields {
179179
_IsFirst?: string;
180180
/** In conversation tracking, a counter of flow logs per conversation */
181181
numFlowLogs?: number;
182+
/** Xlat Source IP address (ipv4 or ipv6) */
183+
XlatSrcAddr?: string;
184+
/** Xlat Destination IP address (ipv4 or ipv6) */
185+
XlatDstAddr?: string;
186+
/** Xlat Source port */
187+
XlatSrcPort?: number;
188+
/** Xlat Destination port */
189+
XlatDstPort?: number;
182190
}
183191

184192
export type Field = keyof Fields | keyof Labels;

web/src/components/drawer/record/record-field.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,26 @@ export const RecordField: React.FC<RecordFieldProps> = ({
378378
flow.fields.DstK8S_Name
379379
)
380380
);
381+
case ColumnsId.xlatsrckubeobject:
382+
return singleContainer(
383+
explicitKubeObjContent(
384+
flow.fields.XlatSrcAddr || '',
385+
flow.fields.XLatSrcPort || NaN,
386+
flow.labels.SrcK8S_Type,
387+
flow.labels.SrcK8S_Namespace,
388+
flow.fields.SrcK8S_Name
389+
)
390+
);
391+
case ColumnsId.xlatdstkubeobject:
392+
return singleContainer(
393+
explicitKubeObjContent(
394+
flow.fields.XlatDstAddr || '',
395+
flow.fields.XlatDstPort || NaN,
396+
flow.labels.DstK8S_Type,
397+
flow.labels.DstK8S_Namespace,
398+
flow.fields.DstK8S_Name
399+
)
400+
);
381401
case ColumnsId.ownerkubeobject:
382402
return doubleContainer(
383403
explicitKubeObjContent(

0 commit comments

Comments
 (0)