From 51d5f76d6052d6648c680a6e0f46383ea00e101a Mon Sep 17 00:00:00 2001 From: acooke-arista Date: Tue, 5 Dec 2023 17:18:49 -0700 Subject: [PATCH] Added dynamic lists to active sessions --- protobuffersrc/ActiveSessions.proto | 1 + .../ActiveSessions/ActiveSessions.pb.go | 28 +++++++++++++------ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/protobuffersrc/ActiveSessions.proto b/protobuffersrc/ActiveSessions.proto index d74ce670..2dfd010a 100644 --- a/protobuffersrc/ActiveSessions.proto +++ b/protobuffersrc/ActiveSessions.proto @@ -76,4 +76,5 @@ message Session { string policy_id = 68; string policy_flow_id = 69; string threat_prevention_threat_level = 70; + string dynamic_lists_blocked_address = 71; } \ No newline at end of file diff --git a/structs/protocolbuffers/ActiveSessions/ActiveSessions.pb.go b/structs/protocolbuffers/ActiveSessions/ActiveSessions.pb.go index 1164c922..21a4b323 100644 --- a/structs/protocolbuffers/ActiveSessions/ActiveSessions.pb.go +++ b/structs/protocolbuffers/ActiveSessions/ActiveSessions.pb.go @@ -140,6 +140,7 @@ type Session struct { PolicyId string `protobuf:"bytes,68,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` PolicyFlowId string `protobuf:"bytes,69,opt,name=policy_flow_id,json=policyFlowId,proto3" json:"policy_flow_id,omitempty"` ThreatPreventionThreatLevel string `protobuf:"bytes,70,opt,name=threat_prevention_threat_level,json=threatPreventionThreatLevel,proto3" json:"threat_prevention_threat_level,omitempty"` + DynamicListsBlockedAddress string `protobuf:"bytes,71,opt,name=dynamic_lists_blocked_address,json=dynamicListsBlockedAddress,proto3" json:"dynamic_lists_blocked_address,omitempty"` } func (x *Session) Reset() { @@ -650,6 +651,13 @@ func (x *Session) GetThreatPreventionThreatLevel() string { return "" } +func (x *Session) GetDynamicListsBlockedAddress() string { + if x != nil { + return x.DynamicListsBlockedAddress + } + return "" +} + var File_ActiveSessions_proto protoreflect.FileDescriptor var file_ActiveSessions_proto_rawDesc = []byte{ @@ -659,7 +667,7 @@ var file_ActiveSessions_proto_rawDesc = []byte{ 0x73, 0x12, 0x34, 0x0a, 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xb4, 0x17, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, + 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xf7, 0x17, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x67, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, @@ -846,13 +854,17 @@ var file_ActiveSessions_proto_rawDesc = []byte{ 0x65, 0x61, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x46, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74, 0x50, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x4a, - 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x6e, 0x74, - 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2d, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x64, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2f, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x41, + 0x0a, 0x1d, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x47, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4c, 0x69, + 0x73, 0x74, 0x73, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x75, 0x6e, 0x74, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2d, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2f, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var (