示例#1
0
        private static void OLTConnectedONUTests(WebClient webClient)
        {
            OperationSupportFileDownloadPrepareResponse operationSupportFileDownloadPrepareResponse = webClient.OLTConnectedONUSupportFileDownloadPrepare("000000000000");

            webClient.OLTConnectedONUSupportFileDownload(operationSupportFileDownloadPrepareResponse.Operation.Path, "SupportFile.tar.gz");

            OperationResponse oltConnectedONUWiFiClientsResponse = webClient.OLTConnectedONUWiFiClients("000000000000");
            OperationResponse oltConnectedONULocateResponse      = webClient.OLTConnectedONULocate("000000000000");
            OperationResponse oltConnectedONUResetResponse       = webClient.OLTConnectedONUReset("000000000000");
        }
示例#2
0
        private static void EdgeOperationsTests(WebClient webClient)
        {
            // Test operations.
            OperationResponse operationCheckForFirmwareUpdatesResponse = webClient.OperationCheckForFirmwareUpdates();
            OperationResponse operationClearTrafficAnalysisResponse    = webClient.OperationClearTrafficAnalysis();

            // Obtain support file.
            OperationSupportFileDownloadPrepareResponse operationSupportFileDownloadPrepareResponse = webClient.OperationSupportFileDownloadPrepare();

            webClient.OperationSupportFileDownload("Support.tar.gz");

            // Test more operations.
            OperationResponse operationFactoryResetResponse = webClient.OperationFactoryReset();
            OperationResponse operationRebootResponse       = webClient.OperationReboot();

            // Release and Renew DHCP lease.
            OperationResponse operationReleaseDHCPResponse = webClient.OperationReleaseDHCP("eth0");
            OperationResponse operationRenewDHCPResponse   = webClient.OperationRenewDHCP("eth0");

            // Test other operations.
            OperationResponse operationShutdownResponse = webClient.OperationShutdown();
            OperationResponse operationResetDefaultConfigurationResponse = webClient.OperationResetDefaultConfiguration();
        }