Skip to content
Merged
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
2 changes: 1 addition & 1 deletion web/locales/en/plugin__netobserv-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Ingress": "Ingress",
"Egress": "Egress",
"Inner": "Inner",
"Both": "Both",
"n/a": "n/a",
"View alert details": "View alert details",
"View health dashboard": "View health dashboard",
Expand All @@ -20,7 +21,6 @@
"In": "In",
"B -> A": "B -> A",
"Out": "Out",
"Both": "Both",
"Average time": "Average time",
"Average rate": "Average rate",
"Latest time": "Latest time",
Expand Down
6 changes: 5 additions & 1 deletion web/src/api/ipfix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export enum FlowDirection {
/** Outgoing traffic, from the node observation point */
Egress = '1',
/** Inner traffic, with the same source and destination node */
Inner = '2'
Inner = '2',
/** Both traffic (for Interface direction only), flow seen on both Ingress and Egress */
Both = '3'
}

export const getDirectionDisplayString = (value: FlowDirection, t: TFunction) => {
Expand All @@ -64,6 +66,8 @@ export const getDirectionDisplayString = (value: FlowDirection, t: TFunction) =>
? t('Egress')
: value === FlowDirection.Inner
? t('Inner')
: value === FlowDirection.Both
? t('Both')
: t('n/a');
};

Expand Down
Loading