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