\hypertarget{classPolicyTarget}{
\section{PolicyTarget Class Reference}
\label{classPolicyTarget}\index{PolicyTarget@{PolicyTarget}}
}


The XORP Policy target.  




{\ttfamily \#include $<$policy\_\-target.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classPolicyTarget_a673cdfdd0c56a2ca1bbaba10decf0b49}{PolicyTarget} (\hyperlink{classXrlStdRouter}{XrlStdRouter} \&rtr)
\item 
bool \hyperlink{classPolicyTarget_afc3f65da0f8dd85a609b16470ab94601}{running} ()
\item 
\hypertarget{classPolicyTarget_ad22255448f944b4c4e3e8df79e6f7c09}{
void \hyperlink{classPolicyTarget_ad22255448f944b4c4e3e8df79e6f7c09}{shutdown} ()}
\label{classPolicyTarget_ad22255448f944b4c4e3e8df79e6f7c09}

\begin{DoxyCompactList}\small\item\em \hyperlink{classShutdown}{Shutdown} \hyperlink{protocolthe-p}{the} process. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a31d02ca04eb544802f9e2d2062692988}{create\_\-term} (const string \&policy, const \hyperlink{classConfigNodeId}{ConfigNodeId} \&order, const string \&term)
\begin{DoxyCompactList}\small\item\em Attempts to create a term. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a19a0ec99c4f6da0f822022d2a225e4fe}{delete\_\-term} (const string \&policy, const string \&term)
\begin{DoxyCompactList}\small\item\em Attempts to delete a term. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_ae1b24f9c09759e5f6929b44ae091e607}{update\_\-term\_\-block} (const string \&policy, const string \&term, const uint32\_\-t \&block, const \hyperlink{classConfigNodeId}{ConfigNodeId} \&order, const string \&statement)
\begin{DoxyCompactList}\small\item\em Update \hyperlink{protocolthe-p}{the} source/dest/action block of a term in a policy. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_ae7479611d72d136bc61cf606f51a5b32}{create\_\-policy} (const string \&policy)
\begin{DoxyCompactList}\small\item\em Attempts to create a policy. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a449c1643da00d28758612553ffdb65f7}{delete\_\-policy} (const string \&policy)
\begin{DoxyCompactList}\small\item\em Attempts to delete a policy. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a51699ab4ce62a6af921fc58f70678b41}{create\_\-set} (const string \&name)
\begin{DoxyCompactList}\small\item\em Attempts to create a policy. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a532e7fbd3a1ed212384d2d1e91e0bbe4}{update\_\-set} (const string \&type, const string \&name, const string \&elements)
\begin{DoxyCompactList}\small\item\em Attempts to update set elements. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a91e62f1c45cb40b7ca06e346d872ac10}{delete\_\-set} (const string \&name)
\begin{DoxyCompactList}\small\item\em Attempts to delete a set. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_ad8d270356db310ebd6c1e8b9e81ffae8}{add\_\-to\_\-set} (const string \&type, const string \&name, const string \&element)
\begin{DoxyCompactList}\small\item\em Add an element to a set. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_adbbf66d33f11e3144e6ebd2ecaeef4e4}{delete\_\-from\_\-set} (const string \&type, const string \&name, const string \&element)
\begin{DoxyCompactList}\small\item\em Delete an element from a set. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a30e17cbd158b6ac9e8cab82cdbb2eea7}{update\_\-import} (const string \&protocol, const string \&policies, const string \&modifier)
\begin{DoxyCompactList}\small\item\em Updates \hyperlink{protocolthe-p}{the} import policy list for a protocol and triggers a delayed commit. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a0c6ebcd8d7b01fc87b21f4d7f6475cdb}{update\_\-export} (const string \&protocol, const string \&policies, const string \&modifier)
\begin{DoxyCompactList}\small\item\em Updates \hyperlink{protocolthe-p}{the} export policy list for a protocol and triggers a delayed commit. \item\end{DoxyCompactList}\item 
\hypertarget{classPolicyTarget_a575364d4cc8841d0ced9be51ffcf691a}{
void {\bfseries add\_\-varmap} (const string \&protocol, const string \&variable, const string \&type, const string \&access, const VarRW::Id \&id)}
\label{classPolicyTarget_a575364d4cc8841d0ced9be51ffcf691a}

\item 
void \hyperlink{classPolicyTarget_abb8b69181c53f8e84cc2da89764d923a}{commit} (uint32\_\-t msec)
\begin{DoxyCompactList}\small\item\em Commit all configuration changes, but trigger a delayed update to \hyperlink{protocolthe-p}{the} actual policy filters. \item\end{DoxyCompactList}\item 
string \hyperlink{classPolicyTarget_aaf91d9b71dd0c3ce0488f090aac23261}{dump\_\-state} (uint32\_\-t id)
\begin{DoxyCompactList}\small\item\em Dump internal state. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_ac4286a8705a366cf396b1defcbbf98ed}{birth} (const string \&tclass, const string \&tinstance)
\begin{DoxyCompactList}\small\item\em Announce birth of a XORP process. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a8161d610c9d82ad3a35595bc02ca798f}{death} (const string \&tclass, const string \&tinstance)
\begin{DoxyCompactList}\small\item\em Announce death of a XORP process. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyTarget_a2d9dd66cb40f9e799eaa35fa62285716}{set\_\-proto\_\-target} (const string \&protocol, const string \&target)
\begin{DoxyCompactList}\small\item\em Update \hyperlink{protocolthe-p}{the} protocol -\/$>$ XRL target map. \item\end{DoxyCompactList}\item 
\hypertarget{classPolicyTarget_a1bcd5a977e93041a64fde095c13df39d}{
string {\bfseries cli\_\-command} (const string \&command)}
\label{classPolicyTarget_a1bcd5a977e93041a64fde095c13df39d}

\item 
\hypertarget{classPolicyTarget_a30e9b38cdd0450f4b78780d6aaa4fe7c}{
string {\bfseries test\_\-policy} (const string \&arg)}
\label{classPolicyTarget_a30e9b38cdd0450f4b78780d6aaa4fe7c}

\item 
\hypertarget{classPolicyTarget_ad1efd0915de5c071b46ef006207a916b}{
string {\bfseries show} (const string \&arg)}
\label{classPolicyTarget_ad1efd0915de5c071b46ef006207a916b}

\item 
\hypertarget{classPolicyTarget_a79dd2ac112ee27364bfa3255aef5a9be}{
void {\bfseries show} (const string \&type, const string \&name, RESOURCES \&res)}
\label{classPolicyTarget_a79dd2ac112ee27364bfa3255aef5a9be}

\item 
\hypertarget{classPolicyTarget_a11f7974b93ba3ca3bf8d160a374e2076}{
bool {\bfseries test\_\-policy} (const string \&policy, const string \&prefix, const string \&attributes, string \&mods)}
\label{classPolicyTarget_a11f7974b93ba3ca3bf8d160a374e2076}

\item 
\hypertarget{classPolicyTarget_a3084c5a2f78caefd7b18ce6faedcc347}{
bool {\bfseries test\_\-policy} (const string \&policy, const RATTR \&attrs, RATTR \&mods)}
\label{classPolicyTarget_a3084c5a2f78caefd7b18ce6faedcc347}

\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPolicyTarget_ac8bfeca490398ffd89feb92c5c767fc4}{
static string {\bfseries policy\_\-target\_\-name} = \char`\"{}policy\char`\"{}}
\label{classPolicyTarget_ac8bfeca490398ffd89feb92c5c767fc4}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPolicyTarget_a599d894aa83db30aaf26bb446c14085e}{
void {\bfseries parse\_\-attributes} (const string \&attr, RATTR \&out)}
\label{classPolicyTarget_a599d894aa83db30aaf26bb446c14085e}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPolicyTarget_a7dd89a30350215b5cb963e659eb8bd06}{
bool {\bfseries \_\-running}}
\label{classPolicyTarget_a7dd89a30350215b5cb963e659eb8bd06}

\item 
\hypertarget{classPolicyTarget_abb4adbd9f2e9e49127d1b98da767fe89}{
uint32\_\-t {\bfseries \_\-commit\_\-delay}}
\label{classPolicyTarget_abb4adbd9f2e9e49127d1b98da767fe89}

\item 
\hypertarget{classPolicyTarget_a206b69e5434ac441f70033d22fae741c}{
\hyperlink{classProtocolMap}{ProtocolMap} {\bfseries \_\-pmap}}
\label{classPolicyTarget_a206b69e5434ac441f70033d22fae741c}

\item 
\hypertarget{classPolicyTarget_aeddf29b21b7afaa340ab7589d0d47ef1}{
\hyperlink{classProcessWatch}{ProcessWatch} {\bfseries \_\-process\_\-watch}}
\label{classPolicyTarget_aeddf29b21b7afaa340ab7589d0d47ef1}

\item 
\hypertarget{classPolicyTarget_a05cfcfe3038eab6f7eaf9bea06f49293}{
\hyperlink{classConfiguration}{Configuration} {\bfseries \_\-conf}}
\label{classPolicyTarget_a05cfcfe3038eab6f7eaf9bea06f49293}

\item 
\hypertarget{classPolicyTarget_adf53642f035ce107c9e17d68f751e62a}{
\hyperlink{classFilterManager}{FilterManager} {\bfseries \_\-filter\_\-manager}}
\label{classPolicyTarget_adf53642f035ce107c9e17d68f751e62a}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
The XORP Policy target. This is \hyperlink{protocolthe-p}{the} class that will be called to perform operation from \hyperlink{protocolthe-p}{the} xrl target. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classPolicyTarget_a673cdfdd0c56a2ca1bbaba10decf0b49}{
\index{PolicyTarget@{PolicyTarget}!PolicyTarget@{PolicyTarget}}
\index{PolicyTarget@{PolicyTarget}!PolicyTarget@{PolicyTarget}}
\subsubsection[{PolicyTarget}]{\setlength{\rightskip}{0pt plus 5cm}PolicyTarget::PolicyTarget (
\begin{DoxyParamCaption}
\item[{{\bf XrlStdRouter} \&}]{rtr}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a673cdfdd0c56a2ca1bbaba10decf0b49}

\begin{DoxyParams}{Parameters}
{\em rtr} & \hyperlink{classXrl}{Xrl} router used by this XORP process. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classPolicyTarget_ad8d270356db310ebd6c1e8b9e81ffae8}{
\index{PolicyTarget@{PolicyTarget}!add\_\-to\_\-set@{add\_\-to\_\-set}}
\index{add\_\-to\_\-set@{add\_\-to\_\-set}!PolicyTarget@{PolicyTarget}}
\subsubsection[{add\_\-to\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::add\_\-to\_\-set (
\begin{DoxyParamCaption}
\item[{const string \&}]{type, }
\item[{const string \&}]{name, }
\item[{const string \&}]{element}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_ad8d270356db310ebd6c1e8b9e81ffae8}


Add an element to a set. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em type} & \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} set. \\
\hline
{\em name} & name of \hyperlink{protocolthe-p}{the} set. \\
\hline
{\em element} & \hyperlink{protocolthe-p}{the} element to add. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_ac4286a8705a366cf396b1defcbbf98ed}{
\index{PolicyTarget@{PolicyTarget}!birth@{birth}}
\index{birth@{birth}!PolicyTarget@{PolicyTarget}}
\subsubsection[{birth}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::birth (
\begin{DoxyParamCaption}
\item[{const string \&}]{tclass, }
\item[{const string \&}]{tinstance}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_ac4286a8705a366cf396b1defcbbf98ed}


Announce birth of a XORP process. 


\begin{DoxyParams}{Parameters}
{\em tclass} & target class. \\
\hline
{\em tinstance} & target instance of class. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_abb8b69181c53f8e84cc2da89764d923a}{
\index{PolicyTarget@{PolicyTarget}!commit@{commit}}
\index{commit@{commit}!PolicyTarget@{PolicyTarget}}
\subsubsection[{commit}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::commit (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{msec}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_abb8b69181c53f8e84cc2da89764d923a}


Commit all configuration changes, but trigger a delayed update to \hyperlink{protocolthe-p}{the} actual policy filters. 


\begin{DoxyParams}{Parameters}
{\em msec} & milliseconds after which policy filters should be updated. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_ae7479611d72d136bc61cf606f51a5b32}{
\index{PolicyTarget@{PolicyTarget}!create\_\-policy@{create\_\-policy}}
\index{create\_\-policy@{create\_\-policy}!PolicyTarget@{PolicyTarget}}
\subsubsection[{create\_\-policy}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::create\_\-policy (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_ae7479611d72d136bc61cf606f51a5b32}


Attempts to create a policy. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em policy} & name of policy to create. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a51699ab4ce62a6af921fc58f70678b41}{
\index{PolicyTarget@{PolicyTarget}!create\_\-set@{create\_\-set}}
\index{create\_\-set@{create\_\-set}!PolicyTarget@{PolicyTarget}}
\subsubsection[{create\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::create\_\-set (
\begin{DoxyParamCaption}
\item[{const string \&}]{name}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a51699ab4ce62a6af921fc58f70678b41}


Attempts to create a policy. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em name} & name of set to create. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a31d02ca04eb544802f9e2d2062692988}{
\index{PolicyTarget@{PolicyTarget}!create\_\-term@{create\_\-term}}
\index{create\_\-term@{create\_\-term}!PolicyTarget@{PolicyTarget}}
\subsubsection[{create\_\-term}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::create\_\-term (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy, }
\item[{const {\bf ConfigNodeId} \&}]{order, }
\item[{const string \&}]{term}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a31d02ca04eb544802f9e2d2062692988}


Attempts to create a term. 

Terms are appended in existing policies \mbox{[}currently no way of inserting a term in a specific position\mbox{]}.

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em policy} & policy in which term should be created. \\
\hline
{\em order} & node ID with position of term. \\
\hline
{\em term} & name of term to create. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a8161d610c9d82ad3a35595bc02ca798f}{
\index{PolicyTarget@{PolicyTarget}!death@{death}}
\index{death@{death}!PolicyTarget@{PolicyTarget}}
\subsubsection[{death}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::death (
\begin{DoxyParamCaption}
\item[{const string \&}]{tclass, }
\item[{const string \&}]{tinstance}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a8161d610c9d82ad3a35595bc02ca798f}


Announce death of a XORP process. 


\begin{DoxyParams}{Parameters}
{\em tclass} & target class. \\
\hline
{\em tinstance} & target instance of class. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_adbbf66d33f11e3144e6ebd2ecaeef4e4}{
\index{PolicyTarget@{PolicyTarget}!delete\_\-from\_\-set@{delete\_\-from\_\-set}}
\index{delete\_\-from\_\-set@{delete\_\-from\_\-set}!PolicyTarget@{PolicyTarget}}
\subsubsection[{delete\_\-from\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::delete\_\-from\_\-set (
\begin{DoxyParamCaption}
\item[{const string \&}]{type, }
\item[{const string \&}]{name, }
\item[{const string \&}]{element}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_adbbf66d33f11e3144e6ebd2ecaeef4e4}


Delete an element from a set. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em type} & \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} set. \\
\hline
{\em name} & name of \hyperlink{protocolthe-p}{the} set. \\
\hline
{\em element} & \hyperlink{protocolthe-p}{the} element to delete. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a449c1643da00d28758612553ffdb65f7}{
\index{PolicyTarget@{PolicyTarget}!delete\_\-policy@{delete\_\-policy}}
\index{delete\_\-policy@{delete\_\-policy}!PolicyTarget@{PolicyTarget}}
\subsubsection[{delete\_\-policy}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::delete\_\-policy (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a449c1643da00d28758612553ffdb65f7}


Attempts to delete a policy. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em policy} & name of policy to delete. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a91e62f1c45cb40b7ca06e346d872ac10}{
\index{PolicyTarget@{PolicyTarget}!delete\_\-set@{delete\_\-set}}
\index{delete\_\-set@{delete\_\-set}!PolicyTarget@{PolicyTarget}}
\subsubsection[{delete\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::delete\_\-set (
\begin{DoxyParamCaption}
\item[{const string \&}]{name}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a91e62f1c45cb40b7ca06e346d872ac10}


Attempts to delete a set. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em name} & name of set to create. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a19a0ec99c4f6da0f822022d2a225e4fe}{
\index{PolicyTarget@{PolicyTarget}!delete\_\-term@{delete\_\-term}}
\index{delete\_\-term@{delete\_\-term}!PolicyTarget@{PolicyTarget}}
\subsubsection[{delete\_\-term}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::delete\_\-term (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy, }
\item[{const string \&}]{term}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a19a0ec99c4f6da0f822022d2a225e4fe}


Attempts to delete a term. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em policy} & policy in which term should be deleted. \\
\hline
{\em term} & name of \hyperlink{protocolthe-p}{the} term. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_aaf91d9b71dd0c3ce0488f090aac23261}{
\index{PolicyTarget@{PolicyTarget}!dump\_\-state@{dump\_\-state}}
\index{dump\_\-state@{dump\_\-state}!PolicyTarget@{PolicyTarget}}
\subsubsection[{dump\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}string PolicyTarget::dump\_\-state (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{id}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_aaf91d9b71dd0c3ce0488f090aac23261}


Dump internal state. 

Use only for debugging.


\begin{DoxyParams}{Parameters}
{\em id} & which part of \hyperlink{protocolthe-p}{the} state to dump. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string representation of internal state. 
\end{DoxyReturn}
\hypertarget{classPolicyTarget_afc3f65da0f8dd85a609b16470ab94601}{
\index{PolicyTarget@{PolicyTarget}!running@{running}}
\index{running@{running}!PolicyTarget@{PolicyTarget}}
\subsubsection[{running}]{\setlength{\rightskip}{0pt plus 5cm}bool PolicyTarget::running (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_afc3f65da0f8dd85a609b16470ab94601}
\begin{DoxyReturn}{Returns}
true if process is running. 
\end{DoxyReturn}
\hypertarget{classPolicyTarget_a2d9dd66cb40f9e799eaa35fa62285716}{
\index{PolicyTarget@{PolicyTarget}!set\_\-proto\_\-target@{set\_\-proto\_\-target}}
\index{set\_\-proto\_\-target@{set\_\-proto\_\-target}!PolicyTarget@{PolicyTarget}}
\subsubsection[{set\_\-proto\_\-target}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::set\_\-proto\_\-target (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol, }
\item[{const string \&}]{target}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a2d9dd66cb40f9e799eaa35fa62285716}


Update \hyperlink{protocolthe-p}{the} protocol -\/$>$ XRL target map. 


\begin{DoxyParams}{Parameters}
{\em protocol} & \hyperlink{protocolthe-p}{the} protocol. \\
\hline
{\em target} & \hyperlink{protocolthe-p}{the} XRL target. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a0c6ebcd8d7b01fc87b21f4d7f6475cdb}{
\index{PolicyTarget@{PolicyTarget}!update\_\-export@{update\_\-export}}
\index{update\_\-export@{update\_\-export}!PolicyTarget@{PolicyTarget}}
\subsubsection[{update\_\-export}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::update\_\-export (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol, }
\item[{const string \&}]{policies, }
\item[{const string \&}]{modifier}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a0c6ebcd8d7b01fc87b21f4d7f6475cdb}


Updates \hyperlink{protocolthe-p}{the} export policy list for a protocol and triggers a delayed commit. 


\begin{DoxyParams}{Parameters}
{\em protocol} & protocol for which to update imports. \\
\hline
{\em policies} & comma separated policy list. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a30e17cbd158b6ac9e8cab82cdbb2eea7}{
\index{PolicyTarget@{PolicyTarget}!update\_\-import@{update\_\-import}}
\index{update\_\-import@{update\_\-import}!PolicyTarget@{PolicyTarget}}
\subsubsection[{update\_\-import}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::update\_\-import (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol, }
\item[{const string \&}]{policies, }
\item[{const string \&}]{modifier}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a30e17cbd158b6ac9e8cab82cdbb2eea7}


Updates \hyperlink{protocolthe-p}{the} import policy list for a protocol and triggers a delayed commit. 


\begin{DoxyParams}{Parameters}
{\em protocol} & protocol for which to update imports. \\
\hline
{\em policies} & comma separated policy list. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_a532e7fbd3a1ed212384d2d1e91e0bbe4}{
\index{PolicyTarget@{PolicyTarget}!update\_\-set@{update\_\-set}}
\index{update\_\-set@{update\_\-set}!PolicyTarget@{PolicyTarget}}
\subsubsection[{update\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::update\_\-set (
\begin{DoxyParamCaption}
\item[{const string \&}]{type, }
\item[{const string \&}]{name, }
\item[{const string \&}]{elements}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_a532e7fbd3a1ed212384d2d1e91e0bbe4}


Attempts to update set elements. 

Exception is thrown on error.


\begin{DoxyParams}{Parameters}
{\em type} & \hyperlink{protocolthe-p}{the} type of \hyperlink{protocolthe-p}{the} set. \\
\hline
{\em name} & name of set to update. \\
\hline
{\em elements} & \hyperlink{protocolthe-p}{the} elements of a set comma separated. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyTarget_ae1b24f9c09759e5f6929b44ae091e607}{
\index{PolicyTarget@{PolicyTarget}!update\_\-term\_\-block@{update\_\-term\_\-block}}
\index{update\_\-term\_\-block@{update\_\-term\_\-block}!PolicyTarget@{PolicyTarget}}
\subsubsection[{update\_\-term\_\-block}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyTarget::update\_\-term\_\-block (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy, }
\item[{const string \&}]{term, }
\item[{const uint32\_\-t \&}]{block, }
\item[{const {\bf ConfigNodeId} \&}]{order, }
\item[{const string \&}]{statement}
\end{DoxyParamCaption}
)}}
\label{classPolicyTarget_ae1b24f9c09759e5f6929b44ae091e607}


Update \hyperlink{protocolthe-p}{the} source/dest/action block of a term in a policy. 

Exception is thrown on error


\begin{DoxyParams}{Parameters}
{\em policy} & \hyperlink{protocolthe-p}{the} name of \hyperlink{protocolthe-p}{the} policy. \\
\hline
{\em term} & \hyperlink{protocolthe-p}{the} name of \hyperlink{protocolthe-p}{the} term. \\
\hline
{\em block} & \hyperlink{protocolthe-p}{the} block to update (0:source, 1:dest, 2:action). \\
\hline
{\em order} & node ID with position of term. \\
\hline
{\em statement} & \hyperlink{protocolthe-p}{the} statement to insert. \\
\hline
\end{DoxyParams}


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