xorp

mfea_node_cli.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 
00003 // Copyright (c) 2001-2011 XORP, Inc and Others
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License, Version 2, June
00007 // 1991 as published by the Free Software Foundation. Redistribution
00008 // and/or modification of this program under the terms of any other
00009 // version of the GNU General Public License is not permitted.
00010 // 
00011 // This program is distributed in the hope that it will be useful, but
00012 // WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00014 // see the GNU General Public License, Version 2, a copy of which can be
00015 // found in the XORP LICENSE.gpl file.
00016 // 
00017 // XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00018 // http://xorp.net
00019 
00020 // $XORP: xorp/fea/mfea_node_cli.hh,v 1.10 2008/10/02 21:56:49 bms Exp $
00021 
00022 
00023 #ifndef __FEA_MFEA_NODE_CLI_HH__
00024 #define __FEA_MFEA_NODE_CLI_HH__
00025 
00026 
00027 //
00028 // MFEA (Multicast Forwarding Engine Abstraction) CLI
00029 //
00030 
00031 
00032 
00033 
00034 
00035 #include "libproto/proto_node_cli.hh"
00036 
00037 
00038 //
00039 // Constants definitions
00040 //
00041 
00042 //
00043 // Structures/classes, typedefs and macros
00044 //
00045 
00046 class MfeaNode;
00047 
00051 class MfeaNodeCli : public ProtoNodeCli {
00052 public:
00058     MfeaNodeCli(MfeaNode& mfea_node);
00059     
00063     virtual ~MfeaNodeCli();
00064     
00070     int     start();
00071 
00077     int     stop();
00078     
00084     void    enable();
00085     
00092     void    disable();
00093     
00099     int     add_all_cli_commands();
00100     
00101 private:
00102     
00103     MfeaNode& mfea_node() const { return (_mfea_node); }
00104     MfeaNode& _mfea_node;
00105     
00106     //
00107     // MFEA CLI commands
00108     //
00109     int     cli_show_mfea_dataflow(const vector<string>& argv);
00110     int     cli_show_mfea_interface(const vector<string>& argv);
00111     int     cli_show_mfea_interface_address(const vector<string>& argv);
00112 };
00113 
00114 //
00115 // Global variables
00116 //
00117 
00118 //
00119 // Global functions prototypes
00120 //
00121 
00122 #endif // __FEA_MFEA_NODE_CLI_HH__
 All Classes Namespaces Functions Variables Typedefs Enumerations