mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-protobuf.git
				synced 2025-10-31 02:28:14 +00:00 
			
		
		
		
	Update to align to changes in event proto
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -23,3 +23,4 @@ build.log | |||||||
| *.tar.gz | *.tar.gz | ||||||
|  |  | ||||||
| *.pydevproject | *.pydevproject | ||||||
|  | /target/ | ||||||
|   | |||||||
| @@ -1414,7 +1414,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                   "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"disable", | 									"disable", | ||||||
| 									"enable", | 									"enable", | ||||||
| 									"precac" | 									"precac" | ||||||
| @@ -1746,7 +1747,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                   "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"disable", | 									"disable", | ||||||
| 									"enable", | 									"enable", | ||||||
| 									"precac" | 									"precac" | ||||||
| @@ -4663,14 +4665,10 @@ | |||||||
| 			"maxRows": 256 | 			"maxRows": 256 | ||||||
| 		}, | 		}, | ||||||
| 		"DHCP_reserved_IP": { | 		"DHCP_reserved_IP": { | ||||||
|         "columns": | 			"columns": { | ||||||
|         { | 				"hostname": { | ||||||
|             "hostname": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 1, | 							"minLength": 1, | ||||||
| 							"maxLength": 63 | 							"maxLength": 63 | ||||||
| @@ -4679,25 +4677,18 @@ | |||||||
| 						"max": 1 | 						"max": 1 | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|             "ip_addr": | 				"ip_addr": { | ||||||
|             { | 					"type": { | ||||||
|                 "type": | 						"key": { | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 7, | 							"minLength": 7, | ||||||
| 							"maxLength": 15 | 							"maxLength": 15 | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | 				"hw_addr": { | ||||||
|             "hw_addr": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 11, | 							"minLength": 11, | ||||||
| 							"maxLength": 17 | 							"maxLength": 17 | ||||||
| @@ -4708,17 +4699,12 @@ | |||||||
| 			"isRoot": true | 			"isRoot": true | ||||||
| 		}, | 		}, | ||||||
| 		"IP_Port_Forward": { | 		"IP_Port_Forward": { | ||||||
|         "columns": | 			"columns": { | ||||||
|         { | 				"protocol": { | ||||||
|             "protocol": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
|                         "enum": | 							"enum": [ | ||||||
|                         [ |  | ||||||
| 								"set", | 								"set", | ||||||
| 								[ | 								[ | ||||||
| 									"tcp", | 									"tcp", | ||||||
| @@ -4728,36 +4714,24 @@ | |||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | 				"src_ifname": { | ||||||
|             "src_ifname": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 2, | 							"minLength": 2, | ||||||
| 							"maxLength": 15 | 							"maxLength": 15 | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | 				"src_port": { | ||||||
|             "src_port": |  | ||||||
|             { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
|  | 				"dst_port": { | ||||||
|             "dst_port": |  | ||||||
|             { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
|  | 				"dst_ipaddr": { | ||||||
|             "dst_ipaddr": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 7, | 							"minLength": 7, | ||||||
| 							"maxLength": 15 | 							"maxLength": 15 | ||||||
| @@ -4768,48 +4742,35 @@ | |||||||
| 			"isRoot": true | 			"isRoot": true | ||||||
| 		}, | 		}, | ||||||
| 		"OVS_MAC_Learning": { | 		"OVS_MAC_Learning": { | ||||||
|         "columns": | 			"columns": { | ||||||
|         { | 				"brname": { | ||||||
|             "brname": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 2, | 							"minLength": 2, | ||||||
| 							"maxLength": 15 | 							"maxLength": 15 | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|             "ifname": | 				"ifname": { | ||||||
|             { | 					"type": { | ||||||
|                 "type": | 						"key": { | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 2, | 							"minLength": 2, | ||||||
| 							"maxLength": 15 | 							"maxLength": 15 | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | 				"hwaddr": { | ||||||
|             "hwaddr": | 					"type": { | ||||||
|             { | 						"key": { | ||||||
|                 "type": |  | ||||||
|                 { |  | ||||||
|                     "key": |  | ||||||
|                     { |  | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"minLength": 11, | 							"minLength": 11, | ||||||
| 							"maxLength": 17 | 							"maxLength": 17 | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | 				"vlan": { | ||||||
|             "vlan": |  | ||||||
|             { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				} | 				} | ||||||
| 			}, | 			}, | ||||||
| @@ -5327,7 +5288,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"deauth", | 									"deauth", | ||||||
| 									"disassoc", | 									"disassoc", | ||||||
| @@ -5350,7 +5312,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"probe_all", | 									"probe_all", | ||||||
| 									"probe_null", | 									"probe_null", | ||||||
| @@ -5525,7 +5488,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"deauth", | 									"deauth", | ||||||
| 									"disassoc", | 									"disassoc", | ||||||
| @@ -5556,7 +5520,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"off", | 									"off", | ||||||
| 									"home", | 									"home", | ||||||
| 									"away" | 									"away" | ||||||
| @@ -5586,7 +5551,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"steering", | 									"steering", | ||||||
| 									"expired", | 									"expired", | ||||||
| @@ -5606,7 +5572,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"deauth", | 									"deauth", | ||||||
| 									"disassoc", | 									"disassoc", | ||||||
| @@ -5671,7 +5638,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"hwm", | 									"hwm", | ||||||
| 									"never", | 									"never", | ||||||
| 									"always", | 									"always", | ||||||
| @@ -5720,7 +5688,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"none", | 									"none", | ||||||
| 									"speculative", | 									"speculative", | ||||||
| 									"directed", | 									"directed", | ||||||
| @@ -5737,7 +5706,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"hwm", | 									"hwm", | ||||||
| 									"never", | 									"never", | ||||||
| 									"always", | 									"always", | ||||||
| @@ -5955,7 +5925,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"cloud", | 									"cloud", | ||||||
| 									"gw", | 									"gw", | ||||||
| 									"init" | 									"init" | ||||||
| @@ -5971,7 +5942,8 @@ | |||||||
| 						"key": { | 						"key": { | ||||||
| 							"type": "string", | 							"type": "string", | ||||||
| 							"enum": [ | 							"enum": [ | ||||||
|                             "set", [ | 								"set", | ||||||
|  | 								[ | ||||||
| 									"schedule", | 									"schedule", | ||||||
| 									"always" | 									"always" | ||||||
| 								] | 								] | ||||||
| @@ -8309,12 +8281,10 @@ | |||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|         "maximum_sources": | 				"maximum_sources": { | ||||||
|         { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
|         "maximum_members": | 				"maximum_members": { | ||||||
|         { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
| 				"fast_leave_enable": { | 				"fast_leave_enable": { | ||||||
| @@ -8374,12 +8344,10 @@ | |||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|         "maximum_sources": | 				"maximum_sources": { | ||||||
|         { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
|         "maximum_members": | 				"maximum_members": { | ||||||
|         { |  | ||||||
| 					"type": "integer" | 					"type": "integer" | ||||||
| 				}, | 				}, | ||||||
| 				"fast_leave_enable": { | 				"fast_leave_enable": { | ||||||
|   | |||||||
| @@ -715,6 +715,7 @@ message EventReport { | |||||||
|         optional bool                   using11k                            = 9; |         optional bool                   using11k                            = 9; | ||||||
|         optional bool                   using11r                            = 10; |         optional bool                   using11r                            = 10; | ||||||
|         optional bool                   using11v                            = 11; |         optional bool                   using11v                            = 11; | ||||||
|  |         optional uint32                 timestamp_ms                        = 12; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Authentication Event */ |     /* Client Authentication Event */ | ||||||
| @@ -724,6 +725,7 @@ message EventReport { | |||||||
|         optional string                 ssid                                = 3; |         optional string                 ssid                                = 3; | ||||||
|         optional RadioBandType          band                                = 4; |         optional RadioBandType          band                                = 4; | ||||||
|         optional uint32                 auth_status                         = 5; |         optional uint32                 auth_status                         = 5; | ||||||
|  |         optional uint32                 timestamp_ms                        = 6; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Disconnect Event */ |     /* Client Disconnect Event */ | ||||||
| @@ -739,6 +741,7 @@ message EventReport { | |||||||
|         optional int32                  rssi                                = 9; |         optional int32                  rssi                                = 9; | ||||||
|         optional string                 ssid                                = 10; |         optional string                 ssid                                = 10; | ||||||
|         optional RadioBandType          band                                = 11; |         optional RadioBandType          band                                = 11; | ||||||
|  |         optional uint32                 timestamp_ms                        = 12; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Connnect Event */ |     /* Client Connnect Event */ | ||||||
| @@ -763,6 +766,7 @@ message EventReport { | |||||||
|         optional bool                   using11v                            = 18; |         optional bool                   using11v                            = 18; | ||||||
|         optional int64                  ev_time_bootup_in_us_ip             = 19; |         optional int64                  ev_time_bootup_in_us_ip             = 19; | ||||||
|         optional int32                  assoc_rssi                          = 20; |         optional int32                  assoc_rssi                          = 20; | ||||||
|  |         optional uint32                 timestamp_ms                        = 21; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Failure Event */ |     /* Client Failure Event */ | ||||||
| @@ -772,6 +776,7 @@ message EventReport { | |||||||
|         optional string                 ssid                                = 3; |         optional string                 ssid                                = 3; | ||||||
|         optional int32                  reason_code                         = 4; |         optional int32                  reason_code                         = 4; | ||||||
|         optional string                 reason_str                          = 5; |         optional string                 reason_str                          = 5; | ||||||
|  |         optional uint32                 timestamp_ms                        = 6; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client First Data Event */ |     /* Client First Data Event */ | ||||||
| @@ -780,6 +785,7 @@ message EventReport { | |||||||
|         optional uint64                 session_id                          = 2; |         optional uint64                 session_id                          = 2; | ||||||
|         optional uint64                 fdata_tx_up_ts_in_us                = 3; |         optional uint64                 fdata_tx_up_ts_in_us                = 3; | ||||||
|         optional uint64                 fdata_rx_up_ts_in_us                = 4; |         optional uint64                 fdata_rx_up_ts_in_us                = 4; | ||||||
|  |         optional uint32                 timestamp_ms                        = 5; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Id Event */ |     /* Client Id Event */ | ||||||
| @@ -787,6 +793,7 @@ message EventReport { | |||||||
|         optional string                 clt_mac                             = 1; |         optional string                 clt_mac                             = 1; | ||||||
|         optional uint64                 session_id                          = 2; |         optional uint64                 session_id                          = 2; | ||||||
|         optional string                 clt_id                              = 3; |         optional string                 clt_id                              = 3; | ||||||
|  |         optional uint32                 timestamp_ms                        = 4; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client IP Event */ |     /* Client IP Event */ | ||||||
| @@ -794,6 +801,7 @@ message EventReport { | |||||||
|         optional string                 sta_mac                             = 1; |         optional string                 sta_mac                             = 1; | ||||||
|         optional uint64                 session_id                          = 2; |         optional uint64                 session_id                          = 2; | ||||||
|         optional bytes                  ip_addr                             = 3; |         optional bytes                  ip_addr                             = 3; | ||||||
|  |         optional uint32                 timestamp_ms                        = 4; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Timeout Event */ |     /* Client Timeout Event */ | ||||||
| @@ -803,6 +811,7 @@ message EventReport { | |||||||
|         optional CTReasonType           r_code                              = 3; |         optional CTReasonType           r_code                              = 3; | ||||||
|         optional uint64                 last_sent_up_ts_in_us               = 4; |         optional uint64                 last_sent_up_ts_in_us               = 4; | ||||||
|         optional uint64                 last_rcv_up_ts_in_us                = 5; |         optional uint64                 last_rcv_up_ts_in_us                = 5; | ||||||
|  |         optional uint32                 timestamp_ms                        = 6; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /* Client Session */ |     /* Client Session */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mike Hansen
					Mike Hansen