\hypertarget{classIfConfigVlanSetLinux}{
\section{IfConfigVlanSetLinux Class Reference}
\label{classIfConfigVlanSetLinux}\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
}
Inheritance diagram for IfConfigVlanSetLinux:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classIfConfigVlanSetLinux}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classIfConfigVlanSetLinux_a929a5175697bebccaac44b731f89073a}{IfConfigVlanSetLinux} (\hyperlink{classFeaDataPlaneManager}{FeaDataPlaneManager} \&fea\_\-data\_\-plane\_\-manager, bool is\_\-dummy)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classIfConfigVlanSetLinux_a3d94a3bc5842bf4796e8a033eaf30f03}{
virtual \hyperlink{classIfConfigVlanSetLinux_a3d94a3bc5842bf4796e8a033eaf30f03}{$\sim$IfConfigVlanSetLinux} ()}
\label{classIfConfigVlanSetLinux_a3d94a3bc5842bf4796e8a033eaf30f03}

\begin{DoxyCompactList}\small\item\em Virtual destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classIfConfigVlanSetLinux_a16a28577a0fbd4d5ac3aad2ac6279667}{start} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Start operation. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classIfConfigVlanSetLinux_aaedea16d2373841e5b9bd45f990765c4}{stop} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Stop operation. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classIfConfigVlanSetLinux_a16a9ca06cb2b57e65903ea93f36cd9ef}{config\_\-add\_\-vlan} (const \hyperlink{classIfTreeInterface}{IfTreeInterface} $\ast$system\_\-ifp, const \hyperlink{classIfTreeInterface}{IfTreeInterface} \&config\_\-if, bool \&created\_\-if, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Add a VLAN. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{classIfConfigVlanSetLinux_a8cae3690853b335ab9e3d718cf2a724e}{config\_\-delete\_\-vlan} (const \hyperlink{classIfTreeInterface}{IfTreeInterface} \&config\_\-iface, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Delete a VLAN. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classIfConfigVlanSetLinux_ab433bc495d4d1b262bdc30efefc82f96}{add\_\-vlan} (const string \&parent\_\-ifname, const string \&vlan\_\-name, uint16\_\-t vlan\_\-id, bool \&created\_\-if, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Add a VLAN. \item\end{DoxyCompactList}\item 
int \hyperlink{classIfConfigVlanSetLinux_a090134af6439f763e1ef098718ee7ff3}{delete\_\-vlan} (const string \&ifname, string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Delete a VLAN. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfConfigVlanSetLinux_ad7f69acebe862e5d9bc644f6a31221d9}{
bool {\bfseries \_\-is\_\-dummy}}
\label{classIfConfigVlanSetLinux_ad7f69acebe862e5d9bc644f6a31221d9}

\item 
\hypertarget{classIfConfigVlanSetLinux_a14b3a4c2caf9ae563f09c3e12e2e3883}{
int {\bfseries \_\-s4}}
\label{classIfConfigVlanSetLinux_a14b3a4c2caf9ae563f09c3e12e2e3883}

\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classIfConfigVlanSetLinux_a929a5175697bebccaac44b731f89073a}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{IfConfigVlanSetLinux}]{\setlength{\rightskip}{0pt plus 5cm}IfConfigVlanSetLinux::IfConfigVlanSetLinux (
\begin{DoxyParamCaption}
\item[{{\bf FeaDataPlaneManager} \&}]{fea\_\-data\_\-plane\_\-manager, }
\item[{bool}]{is\_\-dummy}
\end{DoxyParamCaption}
)}}
\label{classIfConfigVlanSetLinux_a929a5175697bebccaac44b731f89073a}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em fea\_\-data\_\-plane\_\-manager} & \hyperlink{protocolthe-p}{the} corresponding data plane manager (\hyperlink{classFeaDataPlaneManager}{FeaDataPlaneManager}). \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classIfConfigVlanSetLinux_ab433bc495d4d1b262bdc30efefc82f96}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!add\_\-vlan@{add\_\-vlan}}
\index{add\_\-vlan@{add\_\-vlan}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{add\_\-vlan}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::add\_\-vlan (
\begin{DoxyParamCaption}
\item[{const string \&}]{parent\_\-ifname, }
\item[{const string \&}]{vlan\_\-name, }
\item[{uint16\_\-t}]{vlan\_\-id, }
\item[{bool \&}]{created\_\-if, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classIfConfigVlanSetLinux_ab433bc495d4d1b262bdc30efefc82f96}


Add a VLAN. 


\begin{DoxyParams}{Parameters}
{\em parent\_\-ifname} & \hyperlink{protocolthe-p}{the} parent interface name. \\
\hline
{\em vlan\_\-name} & \hyperlink{protocolthe-p}{the} VLAN vif name. \\
\hline
{\em vlan\_\-id} & \hyperlink{protocolthe-p}{the} VLAN ID. \\
\hline
{\em created\_\-if} & Did we actually create a new interface in \hyperlink{protocolthe-p}{the} OS? \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classIfConfigVlanSetLinux_a16a9ca06cb2b57e65903ea93f36cd9ef}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!config\_\-add\_\-vlan@{config\_\-add\_\-vlan}}
\index{config\_\-add\_\-vlan@{config\_\-add\_\-vlan}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{config\_\-add\_\-vlan}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::config\_\-add\_\-vlan (
\begin{DoxyParamCaption}
\item[{const {\bf IfTreeInterface} $\ast$}]{system\_\-ifp, }
\item[{const {\bf IfTreeInterface} \&}]{config\_\-if, }
\item[{bool \&}]{created\_\-if, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIfConfigVlanSetLinux_a16a9ca06cb2b57e65903ea93f36cd9ef}


Add a VLAN. 

If an entry for \hyperlink{protocolthe-p}{the} same VLAN already exists, is is overwritten with \hyperlink{protocolthe-p}{the} new information.


\begin{DoxyParams}{Parameters}
{\em system\_\-ifp} & pointer to \hyperlink{protocolthe-p}{the} System's vlan interface, or NULL. \\
\hline
{\em config\_\-if} & Configured VLAN interface information. \\
\hline
{\em created\_\-if} & Did we actually create a new interface in \hyperlink{protocolthe-p}{the} OS? \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classIfConfigVlanSet_ad42d8367da8b68e59a15efc46d3b58b2}{IfConfigVlanSet}.

\hypertarget{classIfConfigVlanSetLinux_a8cae3690853b335ab9e3d718cf2a724e}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!config\_\-delete\_\-vlan@{config\_\-delete\_\-vlan}}
\index{config\_\-delete\_\-vlan@{config\_\-delete\_\-vlan}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{config\_\-delete\_\-vlan}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::config\_\-delete\_\-vlan (
\begin{DoxyParamCaption}
\item[{const {\bf IfTreeInterface} \&}]{config\_\-iface, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIfConfigVlanSetLinux_a8cae3690853b335ab9e3d718cf2a724e}


Delete a VLAN. 


\begin{DoxyParams}{Parameters}
{\em config\_\-iface} & reference to \hyperlink{protocolthe-p}{the} interface with \hyperlink{protocolthe-p}{the} information to configure. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classIfConfigVlanSet_a59800277ee9e6b3e23c59254b2a816a7}{IfConfigVlanSet}.

\hypertarget{classIfConfigVlanSetLinux_a090134af6439f763e1ef098718ee7ff3}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!delete\_\-vlan@{delete\_\-vlan}}
\index{delete\_\-vlan@{delete\_\-vlan}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{delete\_\-vlan}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::delete\_\-vlan (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classIfConfigVlanSetLinux_a090134af6439f763e1ef098718ee7ff3}


Delete a VLAN. 


\begin{DoxyParams}{Parameters}
{\em ifname} & The vlan to delete. \\
\hline
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classIfConfigVlanSetLinux_a16a28577a0fbd4d5ac3aad2ac6279667}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!start@{start}}
\index{start@{start}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::start (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIfConfigVlanSetLinux_a16a28577a0fbd4d5ac3aad2ac6279667}


Start operation. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classIfConfigVlanSet_a34a4432bc0d4c0561046a606fb54eb55}{IfConfigVlanSet}.

\hypertarget{classIfConfigVlanSetLinux_aaedea16d2373841e5b9bd45f990765c4}{
\index{IfConfigVlanSetLinux@{IfConfigVlanSetLinux}!stop@{stop}}
\index{stop@{stop}!IfConfigVlanSetLinux@{IfConfigVlanSetLinux}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}int IfConfigVlanSetLinux::stop (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classIfConfigVlanSetLinux_aaedea16d2373841e5b9bd45f990765c4}


Stop operation. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}


Implements \hyperlink{classIfConfigVlanSet_a3700aff1ced6fa7a5e0e910d44e74ab4}{IfConfigVlanSet}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/fea/data\_\-plane/ifconfig/ifconfig\_\-vlan\_\-set\_\-linux.hh\item 
/home/greearb/git/xorp.ct.github/xorp/fea/data\_\-plane/ifconfig/ifconfig\_\-vlan\_\-set\_\-linux.cc\end{DoxyCompactItemize}
