From d44866bf695cf03a9492c5ff2508324a5da453d1 Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Mon, 3 Jun 2024 17:00:19 +0200 Subject: [PATCH 1/2] add OvsMonitorMDs as field array --- pkg/model/fields/fields.go | 4 +++- web/src/api/ipfix.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/model/fields/fields.go b/pkg/model/fields/fields.go index 64d0b2163..5e3a5275b 100644 --- a/pkg/model/fields/fields.go +++ b/pkg/model/fields/fields.go @@ -46,6 +46,7 @@ const ( FlowDirection = "FlowDirection" Interfaces = "Interfaces" IfDirections = "IfDirections" + OvsMonitorMDs = "OvsMonitorMDs" DNSID = "DnsId" DNSLatency = "DnsLatencyMs" DNSErrNo = "DnsErrno" @@ -91,7 +92,8 @@ func IsArray(v string) bool { switch v { case IfDirections, - Interfaces: + Interfaces, + OvsMonitorMDs: return true default: return false diff --git a/web/src/api/ipfix.ts b/web/src/api/ipfix.ts index 8addfe9a1..d0bed4e11 100644 --- a/web/src/api/ipfix.ts +++ b/web/src/api/ipfix.ts @@ -115,6 +115,8 @@ export interface Fields { Interfaces?: string[]; /** Flow direction array from the network interface observation point */ IfDirections?: IfDirection[]; + /** OVS monitoring metadatas */ + OvsMonitorMDs?: string[]; /** Logical OR combination of unique TCP flags comprised in the flow, as per RFC-9293, with additional custom flags to represent the following per-packet combinations: SYN+ACK (0x100), FIN+ACK (0x200) and RST+ACK (0x400). */ Flags?: number; /** Number of packets */ From 4ff4b7746fe4c9618bcac1ef15f3f674f1664982 Mon Sep 17 00:00:00 2001 From: Mohamed Mahmoud Date: Thu, 8 Aug 2024 06:51:46 -0400 Subject: [PATCH 2/2] rename to use network events Signed-off-by: Mohamed Mahmoud --- pkg/model/fields/fields.go | 4 ++-- web/src/api/ipfix.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/model/fields/fields.go b/pkg/model/fields/fields.go index 5e3a5275b..1ab63bcc8 100644 --- a/pkg/model/fields/fields.go +++ b/pkg/model/fields/fields.go @@ -46,7 +46,7 @@ const ( FlowDirection = "FlowDirection" Interfaces = "Interfaces" IfDirections = "IfDirections" - OvsMonitorMDs = "OvsMonitorMDs" + NetworkEvents = "NetworkEvents" DNSID = "DnsId" DNSLatency = "DnsLatencyMs" DNSErrNo = "DnsErrno" @@ -93,7 +93,7 @@ func IsArray(v string) bool { case IfDirections, Interfaces, - OvsMonitorMDs: + NetworkEvents: return true default: return false diff --git a/web/src/api/ipfix.ts b/web/src/api/ipfix.ts index d0bed4e11..b34f668ff 100644 --- a/web/src/api/ipfix.ts +++ b/web/src/api/ipfix.ts @@ -115,8 +115,8 @@ export interface Fields { Interfaces?: string[]; /** Flow direction array from the network interface observation point */ IfDirections?: IfDirection[]; - /** OVS monitoring metadatas */ - OvsMonitorMDs?: string[]; + /** Network Events */ + NetworkEvents?: string[]; /** Logical OR combination of unique TCP flags comprised in the flow, as per RFC-9293, with additional custom flags to represent the following per-packet combinations: SYN+ACK (0x100), FIN+ACK (0x200) and RST+ACK (0x400). */ Flags?: number; /** Number of packets */