OpenSDN source code
default_gateway.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
6
#include "
bgp/extended-community/default_gateway.h
"
7
8
#include <algorithm>
9
#include <string>
10
11
using
std::copy;
12
using
std::string;
13
14
DefaultGateway::DefaultGateway
(
const
bytes_type
&data) {
15
copy(data.begin(), data.end(),
data_
.begin());
16
}
17
18
string
DefaultGateway::ToString
()
const
{
19
return
string(
"defaultgw:0"
);
20
}
DefaultGateway::bytes_type
boost::array< uint8_t, kSize > bytes_type
Definition:
default_gateway.h:19
DefaultGateway::DefaultGateway
DefaultGateway(const bytes_type &data)
Definition:
default_gateway.cc:14
DefaultGateway::ToString
std::string ToString() const
Definition:
default_gateway.cc:18
DefaultGateway::data_
bytes_type data_
Definition:
default_gateway.h:25
default_gateway.h
contrail
controller
src
bgp
extended-community
default_gateway.cc
Generated by
1.9.1