Skip to content

Commit 40dc477

Browse files
committed
Manage IfDirection=3 (both)
1 parent 4b19487 commit 40dc477

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

web/locales/en/plugin__netobserv-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"Ingress": "Ingress",
33
"Egress": "Egress",
44
"Inner": "Inner",
5+
"Both": "Both",
56
"n/a": "n/a",
67
"View alert details": "View alert details",
78
"View health dashboard": "View health dashboard",
@@ -19,7 +20,6 @@
1920
"In": "In",
2021
"B -> A": "B -> A",
2122
"Out": "Out",
22-
"Both": "Both",
2323
"Average time": "Average time",
2424
"Average rate": "Average rate",
2525
"Latest time": "Latest time",

web/src/api/ipfix.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export enum FlowDirection {
5454
/** Outgoing traffic, from the node observation point */
5555
Egress = '1',
5656
/** Inner traffic, with the same source and destination node */
57-
Inner = '2'
57+
Inner = '2',
58+
/** Both traffic (for Interface direction only), flow seen on both Ingress and Egress */
59+
Both = '3'
5860
}
5961

6062
export const getDirectionDisplayString = (value: FlowDirection, t: TFunction) => {
@@ -64,6 +66,8 @@ export const getDirectionDisplayString = (value: FlowDirection, t: TFunction) =>
6466
? t('Egress')
6567
: value === FlowDirection.Inner
6668
? t('Inner')
69+
: value === FlowDirection.Both
70+
? t('Both')
6771
: t('n/a');
6872
};
6973

0 commit comments

Comments
 (0)