OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
port_ipc_handler_os_impl.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
3  */
4 
6 
7 const std::string PortIpcHandler::kPortsDir = "/var/lib/contrail/ports";
8 
9 bool PortIpcHandler::InterfaceExists(const std::string &name) const {
10  int idx = if_nametoindex(name.c_str());
11  return idx != 0;
12 }
static const std::string kPortsDir
bool InterfaceExists(const std::string &name) const