Skip to content

Commit

Permalink
Adding interface provider to firehose flow (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
i3149 authored Sep 9, 2024
1 parent d9b0967 commit 753f818
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cat/jchf.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,18 @@ func (kc *KTranslate) flowToJCHF(ctx context.Context, dst *kt.JCHF, src *Flow, c
dst.InputIntAlias = i.SnmpAlias
dst.InputInterfaceCapacity = i.SnmpSpeedMbps
dst.InputInterfaceIP = i.InterfaceIP
dst.CustomStr["input_provider"] = i.Provider
dst.CustomStr["input_site_title"] = i.SiteTitle
dst.CustomStr["input_site_country"] = i.SiteCountry
}
if i, ok := d.Interfaces[dst.OutputPort]; ok {
dst.OutputIntDesc = i.InterfaceDescription
dst.OutputIntAlias = i.SnmpAlias
dst.OutputInterfaceCapacity = i.SnmpSpeedMbps
dst.OutputInterfaceIP = i.InterfaceIP
dst.CustomStr["output_provider"] = i.Provider
dst.CustomStr["output_site_title"] = i.SiteTitle
dst.CustomStr["output_site_country"] = i.SiteCountry
}
}

Expand Down

0 comments on commit 753f818

Please sign in to comment.