Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network Instance State Collector #3117

Merged
merged 1 commit into from
Apr 3, 2023
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
3 changes: 2 additions & 1 deletion pkg/dom0-ztools/rootfs/etc/sysctl.d/02-eve.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ net.ipv4.tcp_keepalive_time = 60
# flowstats settings
# Adjust the conntrack flow session timeout values
# by adding 150 seconds on top of default seconds
# This also gets reflected in flowstats.go timeoutSec
# This also gets reflected in pkg/pillar/nistate/linux_flow.go,
# constant conntrackFlowExtraTimeout
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 270
net.netfilter.nf_conntrack_tcp_timeout_last_ack = 180
net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 450
Expand Down
6 changes: 3 additions & 3 deletions pkg/pillar/cmd/zedagent/handlenetworkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ func protoEncodeAppFlowMonitorProto(ipflow types.IPFlow) *flowlog.FlowMessage {

// ScopeInfo fill in
pScope := new(flowlog.ScopeInfo)
pScope.Uuid = ipflow.Scope.UUID.String()
pScope.Intf = ipflow.Scope.Intf
pScope.LocalIntf = ipflow.Scope.Localintf
pScope.Uuid = ipflow.Scope.AppUUID.String()
pScope.Intf = ipflow.Scope.NetAdapterName
pScope.LocalIntf = ipflow.Scope.BrIfName
pScope.NetInstUUID = ipflow.Scope.NetUUID.String()
pflows.Scope = pScope

Expand Down
Loading