OpenSDN source code
xmpp_channel.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 "
xmpp/xmpp_channel.h
"
7
8
using
std::string;
9
10
namespace
xmps
{
11
12
string
PeerIdToName
(
PeerId
id
) {
13
switch
(
id
) {
14
case
CONFIG
:
15
return
"IFMap"
;
16
break
;
17
case
BGP
:
18
return
"BGP"
;
19
break
;
20
case
DNS
:
21
return
"DNS"
;
22
break
;
23
case
OTHER
:
24
default
:
25
return
"OTHER"
;
26
break
;
27
}
28
return
"OTHER"
;
29
}
30
31
}
xmps
Definition:
xmpp_channel.cc:10
xmps::PeerIdToName
string PeerIdToName(PeerId id)
Definition:
xmpp_channel.cc:12
xmps::PeerId
PeerId
Definition:
xmpp_channel.h:23
xmps::DNS
@ DNS
Definition:
xmpp_channel.h:26
xmps::BGP
@ BGP
Definition:
xmpp_channel.h:25
xmps::CONFIG
@ CONFIG
Definition:
xmpp_channel.h:24
xmps::OTHER
@ OTHER
Definition:
xmpp_channel.h:27
xmpp_channel.h
contrail
controller
src
xmpp
xmpp_channel.cc
Generated by
1.9.1