Skip to content

Commit ec61190

Browse files
committed
NETOBSERV-2056: Add xlat filters to hardcode fields list
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent bb407dd commit ec61190

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pkg/model/fields/fields.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const (
5454
Duplicate = "Duplicate"
5555
TimeFlowRTT = "TimeFlowRttNs"
5656
TCPFlags = "Flags"
57+
XlatSrcPort = "XlatSrcPort"
58+
XlatDstPort = "XlatDstPort"
59+
XlatSrcAddr = "XlatSrcAddr"
60+
XlatDstAddr = "XlatDstAddr"
61+
XlatZoneID = "ZoneId"
5762
)
5863

5964
func IsNumeric(v string) bool {
@@ -69,7 +74,10 @@ func IsNumeric(v string) bool {
6974
Packets,
7075
Proto,
7176
Bytes,
72-
DSCP:
77+
DSCP,
78+
XlatDstPort,
79+
XlatSrcPort,
80+
XlatZoneID:
7381
return true
7482
default:
7583
return false
@@ -82,7 +90,9 @@ func IsIP(f string) bool {
8290
DstAddr,
8391
SrcAddr,
8492
DstHostIP,
85-
SrcHostIP:
93+
SrcHostIP,
94+
XlatDstAddr,
95+
XlatSrcAddr:
8696
return true
8797
default:
8898
return false

0 commit comments

Comments
 (0)