Skip to content

Commit

Permalink
Run clang-format on client source
Browse files Browse the repository at this point in the history
Signed-off-by: Derek G Foster <[email protected]>
  • Loading branch information
ffoulkes committed Nov 6, 2023
1 parent be2be03 commit 892c29e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion clients/gnmi-ctl/gnmi_ctl_utils.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
* Copyright (c) 2008-2016 Nicira, Inc.
* Copyright (c) 2022-2023 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
Expand Down
3 changes: 2 additions & 1 deletion clients/gnmi-ctl/gnmi_ctl_utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Nicira, Inc.
* Copyright (c) 2008-2017 Nicira, Inc.
* Copyright (c) 2022-2023 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
4 changes: 2 additions & 2 deletions clients/p4rt_perf_test/p4rt_perf_simple_l2_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void PrepareSimpleL2DemoTableEntry(p4::v1::TableEntry* table_entry,
bool insert_entry);

int SimpleL2DemoTest(P4rtSession* session,
const ::p4::config::v1::P4Info& p4info,
ThreadInfo& t_data);
const ::p4::config::v1::P4Info& p4info,
ThreadInfo& t_data);

#endif
7 changes: 3 additions & 4 deletions clients/sgnmi_cli/sgnmi_cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define DEFAULT_CERTS_DIR "/usr/share/stratum/certs/"

DEFINE_bool(grpc_use_insecure_mode, false,
"grpc communication in insecure mode");
"grpc communication in insecure mode");
DEFINE_string(grpc_addr, stratum::kLocalStratumUrl, "gNMI server address");
DEFINE_string(bool_val, "", "Boolean value to be set");
DEFINE_string(int_val, "", "Integer value to be set (64-bit)");
Expand Down Expand Up @@ -243,7 +243,6 @@ ::gnmi::SubscribeRequest BuildGnmiSubSampleRequest(std::string path,
}

::util::Status Main(int argc, char** argv) {

// Default certificate file location for TLS-mode
FLAGS_ca_cert_file = DEFAULT_CERTS_DIR "ca.crt";
FLAGS_server_key_file = DEFAULT_CERTS_DIR "stratum.key";
Expand Down Expand Up @@ -288,13 +287,13 @@ ::util::Status Main(int argc, char** argv) {
std::shared_ptr<::grpc::Channel> channel;
if (FLAGS_grpc_use_insecure_mode) {
ASSIGN_OR_RETURN(auto credentials_manager,
CredentialsManager::CreateInstance(true));
CredentialsManager::CreateInstance(true));
channel = ::grpc::CreateChannel(
FLAGS_grpc_addr,
credentials_manager->GenerateExternalFacingClientCredentials());
} else {
std::shared_ptr<::grpc::ChannelCredentials> channel_credentials =
::grpc::InsecureChannelCredentials();
::grpc::InsecureChannelCredentials();
channel = ::grpc::CreateChannel(FLAGS_grpc_addr, channel_credentials);
}

Expand Down

0 comments on commit 892c29e

Please sign in to comment.