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 }
string PeerIdToName(PeerId id)
Definition: xmpp_channel.cc:12
@ CONFIG
Definition: xmpp_channel.h:24
@ OTHER
Definition: xmpp_channel.h:27