OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
5
#include <
port_ipc/port_ipc_handler.h
>
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
}
port_ipc_handler.h
PortIpcHandler::kPortsDir
static const std::string kPortsDir
Definition:
port_ipc_handler.h:25
PortIpcHandler::InterfaceExists
bool InterfaceExists(const std::string &name) const
Definition:
port_ipc_handler_os_impl.cc:9
contrail
controller
src
vnsw
agent
port_ipc
nix
port_ipc_handler_os_impl.cc
Generated by
1.8.5