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
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::CONFIG
Definition:
xmpp_channel.h:23
xmpp_channel.h
xmps::BGP
Definition:
xmpp_channel.h:24
xmps::PeerId
PeerId
Definition:
xmpp_channel.h:22
xmps::OTHER
Definition:
xmpp_channel.h:26
xmps::DNS
Definition:
xmpp_channel.h:25
xmps::PeerIdToName
string PeerIdToName(PeerId id)
Definition:
xmpp_channel.cc:11
contrail
controller
src
xmpp
xmpp_channel.cc
Generated by
1.8.5