Commit e699253f authored by Mohammad Ismaeel's avatar Mohammad Ismaeel
Browse files

delete the configuration

parent 91b6fbe1
Loading
Loading
Loading
Loading

.context.log.swp

deleted100644 → 0
−16 KiB

File deleted.

+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ export CRDB_DATABASE="tfs"
export CRDB_DEPLOY_MODE="single"

# Disable flag for dropping database, if it exists.
export CRDB_DROP_DATABASE_IF_EXISTS="YES"
export CRDB_DROP_DATABASE_IF_EXISTS=""

# Disable flag for re-deploying CockroachDB from scratch.
export CRDB_REDEPLOY=""
+1 −0
Original line number Diff line number Diff line
@@ -20,4 +20,5 @@ import "context.proto";
service OpenConfigService {
  rpc AddOpenConfigDevice   (context.OpticalConfig) returns (context.OpticalConfigId) {}
  rpc ConfigureOpticalDevice(context.OpticalConfig) returns (context.Empty          ) {}
  rpc DisableOpticalDevice(context.OpticalConfig) returns (context.Empty          ) {}
}
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ from .uuids.EndPoint import endpoint_get_uuid
from .ConfigRule import compose_config_rules_data, upsert_config_rules
from .Component import compose_components_data
from .Events import notify_event_context, notify_event_device, notify_event_topology
from .models.OpticalEndPointModel import OpticalEndPointModel


LOGGER = logging.getLogger(__name__)

+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                                    "frequency"         : int(channel_params["frequency"]) if "frequency" in channel_params  else 0,
                                    "operational_mode"  : int(channel_params["operational-mode"]) if "operational-mode" in channel_params else 0,
                                    "target_output_power"      : channel_params["target-output-power"] if "target-output-power" in channel_params else '',
                                    "status":channel_params["status"] if "status" in channel_params else ""
                                 } 
                             )
                  
Loading