1
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
3
// Copyright (c) 2007-2008 International Computer Science Institute
5
// Permission is hereby granted, free of charge, to any person obtaining a
6
// copy of this software and associated documentation files (the "Software")
7
// to deal in the Software without restriction, subject to the conditions
8
// listed in the XORP LICENSE file. These conditions include: you must
9
// preserve this copyright notice, and you cannot mention the copyright
10
// holders in advertising related to the Software without their permission.
11
// The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This
12
// notice is a summary of the XORP LICENSE file; the license in that file is
15
// $XORP: xorp/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.hh,v 1.3 2008/01/04 03:16:12 pavlin Exp $
17
#ifndef __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__
18
#define __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__
20
#include "fea/ifconfig_vlan_get.hh"
23
class IfConfigVlanGetLinux : public IfConfigVlanGet {
28
* @param fea_data_plane_manager the corresponding data plane manager
29
* (@ref FeaDataPlaneManager).
31
IfConfigVlanGetLinux(FeaDataPlaneManager& fea_data_plane_manager);
36
virtual ~IfConfigVlanGetLinux();
41
* @param error_msg the error message (if error).
42
* @return XORP_OK on success, otherwise XORP_ERROR.
44
virtual int start(string& error_msg);
49
* @param error_msg the error message (if error).
50
* @return XORP_OK on success, otherwise XORP_ERROR.
52
virtual int stop(string& error_msg);
55
* Pull the VLAN network interface information from the underlying system.
57
* The VLAN information is added to the existing state in the iftree.
59
* @param iftree the IfTree storage to store the pulled information.
60
* @return XORP_OK on success, otherwise XORP_ERROR.
62
virtual int pull_config(IfTree& iftree);
65
int read_config(IfTree& iftree);
70
#endif // __FEA_DATA_PLANE_IFCONFIG_IFCONFIG_VLAN_GET_LINUX_HH__