Skip to content

Commit

Permalink
Replaced isL7 bool with l7FlowType enum
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Tathgur <tathgurt@tathgurtPNQHP.vmware.com>
  • Loading branch information
Tushar Tathgur authored and Tushar Tathgur committed Sep 28, 2023
1 parent fb77988 commit 009ac28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ const (
EndOfFlowReason = uint8(0x03)
)

// enum for l7FlowType field in Antrea registry
const (
L7flowNotPresent = uint8(0)
L7flowTypeHttp = uint8(1)
)

var (
// globalRegistryByID shows mapping EnterpriseID -> Info element ID -> Info element
globalRegistryByID map[uint32]map[uint16]*entities.InfoElement
Expand Down
3 changes: 2 additions & 1 deletion pkg/registry/registry_antrea.csv
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ ElementID,Name,Abstract Data Type,Data Type Semantics,Status,Description,Units,R
152,flowEndSecondsFromDestinationNode,unsigned32,,current,,,,,,,,56506,
153,egressName,string,,current,,,,,,,,56506,
154,egressIP,string,,current,,,,,,,,56506,
155,isL7,boolean,,current,,,,,,,,56506,
155,l7FlowType,unsigned8,,current,
Actions(uint8 value): L7flowNotPresent(0) L7flowHttpFlow(1),,,,,,,56506,
156,httpVals,string,,current,,,,,,,,56506,
6 changes: 3 additions & 3 deletions pkg/registry/registry_antrea.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ func loadAntreaRegistry() {
registerInfoElement(*entities.NewInfoElement("throughputFromDestinationNode", 148, 4, 56506, 8), 56506)
registerInfoElement(*entities.NewInfoElement("reverseThroughputFromSourceNode", 149, 4, 56506, 8), 56506)
registerInfoElement(*entities.NewInfoElement("reverseThroughputFromDestinationNode", 150, 4, 56506, 8), 56506)
registerInfoElement(*entities.NewInfoElement("flowEndSecondsFromSourceNode", 151, 3, 56506, 4), 56506)
registerInfoElement(*entities.NewInfoElement("flowEndSecondsFromDestinationNode", 152, 3, 56506, 4), 56506)
registerInfoElement(*entities.NewInfoElement("flowEndSecondsFromSourceNode", 151, 14, 56506, 4), 56506)
registerInfoElement(*entities.NewInfoElement("flowEndSecondsFromDestinationNode", 152, 14, 56506, 4), 56506)
registerInfoElement(*entities.NewInfoElement("egressName", 153, 13, 56506, 65535), 56506)
registerInfoElement(*entities.NewInfoElement("egressIP", 154, 13, 56506, 65535), 56506)
registerInfoElement(*entities.NewInfoElement("isL7", 155, 11, 56506, 1), 56506)
registerInfoElement(*entities.NewInfoElement("isL7", 155, 1, 56506, 1), 56506)
registerInfoElement(*entities.NewInfoElement("httpVals", 156, 13, 56506, 65535), 56506)
}

0 comments on commit 009ac28

Please sign in to comment.