correction due to sync w hybrid logging
[ta/config-manager.git] / cmdatahandlers / src / cmdatahandlers / caas / config.py
index 8ef8081..811dec0 100644 (file)
@@ -26,6 +26,7 @@ VNF_EMBEDDED_SOFT_EVICTION_THRESHOLD = "300Mi"
 BM_SOFT_EVICTION_THRESHOLD = "4Gi"
 VNF_EMBEDDED_HARD_EVICTION_THRESHOLD = "200Mi"
 BM_HARD_EVICTION_THRESHOLD = "2Gi"
+DEFAULT_CAAS_INFRA_LOG_TYPE = 'remote_syslog'
 
 
 class Config(config.Config):
@@ -62,6 +63,10 @@ class Config(config.Config):
         self.config[self.ROOT]['flavour'] = self.flavour_set()
         if not self.config[self.ROOT].get('dns_domain', ""):
             self.config[self.ROOT]['dns_domain'] = DEFAULT_CAAS_DNS_DOMAIN
+        if not self.get_caas_parameter('infra_log_store'):
+            self.config[self.ROOT]['infra_log_store'] = DEFAULT_CAAS_INFRA_LOG_TYPE
+        if not self.get_caas_parameter('log_forwarding'):
+            self.set_caas_parameter('log_forwarding', [])
 
     def set_static_config(self):
         try: