Commit 4850ea5f authored by Mohammad Ismaeel's avatar Mohammad Ismaeel
Browse files

get opticalconfig bug fixed in tapi

parent 0612e1ec
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -86,12 +86,14 @@ class TapiServiceServicerImpl(TapiService):
            
    
    def GetOpticalConfig (self ,device_id : DeviceId , context : grpc.ServicerContext) -> OpticalConfig : 
        try: 
        device_uuid = device_id.device_uuid.uuid
        config_uuid = opticalconfig_uuid_get_duuid (device_uuid)
        opticalconfigId = OpticalConfigId()
        opticalconfigId.opticalconfig_uuid = config_uuid
     
            oconfig = self._ctxt.SelectOpticalConfig(topology_id)
        try: 
            LOGGER.info(f"opticalconfigId {opticalconfigId}")
            oconfig = self._ctxt.SelectOpticalConfig(opticalconfigId)
            LOGGER.info(f"oconfig {oconfig}")
            return oconfig        
          
        except Exception as e :