mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 18:48:09 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		| @@ -543,9 +543,18 @@ namespace OpenWifi { | ||||
|  | ||||
|     inline bool ValidRRM(const std::string &v) { | ||||
|         if((v=="no") || (v=="inherit")) return true; | ||||
|         auto parts = Poco::StringTokenizer(v,":"); | ||||
|         if(parts.count()!=4) return false; | ||||
|         return ValidSchedule(parts[2]); | ||||
|         try { | ||||
|             Poco::JSON::Parser  P; | ||||
|             auto O = P.parse(v).extract<Poco::JSON::Object::Ptr>(); | ||||
|  | ||||
|             ProvObjects::RRMDetails D; | ||||
|             if(D.from_json(O)) { | ||||
|                 return ValidSchedule(D.schedule); | ||||
|             } | ||||
|         } catch (...) { | ||||
|  | ||||
|         } | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|     inline bool ValidDeviceRules(const ProvObjects::DeviceRules & DR) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959