ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quagga-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2012 Hajime Tazaki, NICT
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Hajime Tazaki <tazaki@sfc.wide.ad.jp>
19  */
20 #ifndef QUAGGA_HELPER_H
21 #define QUAGGA_HELPER_H
22 
23 #include "ns3/dce-manager-helper.h"
24 #include "ns3/dce-application-helper.h"
25 
26 namespace ns3 {
27 
35 {
36 public:
42  QuaggaHelper ();
43 
52  ApplicationContainer Install (NodeContainer nodes);
53 
62  ApplicationContainer Install (Ptr<Node> node);
63 
73  ApplicationContainer Install (std::string nodeName);
74 
81  void SetAttribute (std::string name, const AttributeValue &value);
82 
89  void EnableOspf (NodeContainer nodes, const char *network);
90 
96  void EnableOspfDebug (NodeContainer nodes);
97 
103  void EnableZebraDebug (NodeContainer nodes);
104 
113  void EnableRadvd (Ptr<Node> node, const char *ifname, const char *prefix);
114 
123  void EnableHomeAgentFlag (Ptr<Node> node, const char *ifname);
124 
131  void UseManualZebraConfig (NodeContainer nodes);
132 
138  void EnableBgp (NodeContainer nodes);
139 
145  uint32_t GetAsn (Ptr<Node> node);
146 
154  void BgpAddNeighbor (Ptr<Node> node, std::string neighbor, uint32_t asn);
155 
162  void EnableOspf6 (NodeContainer nodes, const char *ifname);
163 
169  void EnableOspf6Debug (NodeContainer nodes);
170 
177  void EnableRip (NodeContainer nodes, const char *ifname);
178 
184  void EnableRipDebug (NodeContainer nodes);
185 
192  void EnableRipng (NodeContainer nodes, const char *ifname);
193 
199  void EnableRipngDebug (NodeContainer nodes);
200 
201 private:
205  ApplicationContainer InstallPriv (Ptr<Node> node);
206  void GenerateConfigZebra (Ptr<Node> node);
207  void GenerateConfigOspf (Ptr<Node> node);
208  void GenerateConfigBgp (Ptr<Node> node);
209  void GenerateConfigOspf6 (Ptr<Node> node);
210  void GenerateConfigRip (Ptr<Node> node);
211  void GenerateConfigRipng (Ptr<Node> node);
212 };
213 
214 } // namespace ns3
215 
216 #endif /* QUAGGA_HELPER_H */