\hypertarget{classPolicyTableImport}{
\section{PolicyTableImport$<$ A $>$ Class Template Reference}
\label{classPolicyTableImport}\index{PolicyTableImport@{PolicyTableImport}}
}


Import policy tables also deal with propagating policy route dumps.  




{\ttfamily \#include $<$route\_\-table\_\-policy\_\-im.hh$>$}

Inheritance diagram for PolicyTableImport$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classPolicyTableImport}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classPolicyTableImport_aafae2c2344841667f8204ebe6b8afde3}{PolicyTableImport} (const string \&tablename, const Safi \&safi, \hyperlink{classBGPRouteTable}{BGPRouteTable}$<$ A $>$ $\ast$parent, \hyperlink{classPolicyFilters}{PolicyFilters} \&pfs, const A \&peer, const A \&self)
\item 
int \hyperlink{classPolicyTableImport_a1614e3b47986c9895c1b09e61547a54e}{route\_\-dump} (\hyperlink{classInternalMessage}{InternalMessage}$<$ A $>$ \&rtmsg, \hyperlink{classBGPRouteTable}{BGPRouteTable}$<$ A $>$ $\ast$caller, const \hyperlink{classPeerHandler}{PeerHandler} $\ast$dump\_\-peer)
\begin{DoxyCompactList}\small\item\em If dump\_\-peer is null, then it is a policy route dump and we need to deal with it. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class A$>$ class PolicyTableImport$<$ A $>$}

Import policy tables also deal with propagating policy route dumps. Import tables will detect policy route dumps \mbox{[}NULL in dump\_\-peer\mbox{]}. It will then transport \hyperlink{protocolthe-p}{the} dump to an add/delete/request based on \hyperlink{protocolthe-p}{the} outcome of \hyperlink{protocolthe-p}{the} filter. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classPolicyTableImport_aafae2c2344841667f8204ebe6b8afde3}{
\index{PolicyTableImport@{PolicyTableImport}!PolicyTableImport@{PolicyTableImport}}
\index{PolicyTableImport@{PolicyTableImport}!PolicyTableImport@{PolicyTableImport}}
\subsubsection[{PolicyTableImport}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ {\bf PolicyTableImport}$<$ A $>$::{\bf PolicyTableImport} (
\begin{DoxyParamCaption}
\item[{const string \&}]{tablename, }
\item[{const Safi \&}]{safi, }
\item[{{\bf BGPRouteTable}$<$ A $>$ $\ast$}]{parent, }
\item[{{\bf PolicyFilters} \&}]{pfs, }
\item[{const A \&}]{peer, }
\item[{const A \&}]{self}
\end{DoxyParamCaption}
)}}
\label{classPolicyTableImport_aafae2c2344841667f8204ebe6b8afde3}

\begin{DoxyParams}{Parameters}
{\em tablename} & name of \hyperlink{protocolthe-p}{the} table. \\
\hline
{\em safi} & \hyperlink{protocolthe-p}{the} safe. \\
\hline
{\em parent} & parent table. \\
\hline
{\em pfs} & a reference to \hyperlink{protocolthe-p}{the} global policy filters. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classPolicyTableImport_a1614e3b47986c9895c1b09e61547a54e}{
\index{PolicyTableImport@{PolicyTableImport}!route\_\-dump@{route\_\-dump}}
\index{route\_\-dump@{route\_\-dump}!PolicyTableImport@{PolicyTableImport}}
\subsubsection[{route\_\-dump}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ int {\bf PolicyTableImport}$<$ A $>$::route\_\-dump (
\begin{DoxyParamCaption}
\item[{{\bf InternalMessage}$<$ A $>$ \&}]{rtmsg, }
\item[{{\bf BGPRouteTable}$<$ A $>$ $\ast$}]{caller, }
\item[{const {\bf PeerHandler} $\ast$}]{dump\_\-peer}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classPolicyTableImport_a1614e3b47986c9895c1b09e61547a54e}


If dump\_\-peer is null, then it is a policy route dump and we need to deal with it. 


\begin{DoxyParams}{Parameters}
{\em rtmsg} & route being dumped. \\
\hline
{\em caller} & table that called this method. \\
\hline
{\em dump\_\-peer} & peer we are dumping to. If policy dump, it will be NULL. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
ADD\_\-FILTERED if route is rejected. XORP\_\-OK otherwise. 
\end{DoxyReturn}


Reimplemented from \hyperlink{classPolicyTable}{PolicyTable$<$ A $>$}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/route\_\-table\_\-policy\_\-im.hh\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/route\_\-table\_\-policy\_\-im.cc\end{DoxyCompactItemize}
