<div class="content" name="BGP_POLICY_MODIFY" uuid="ab8017b3-230d-4be7-abfe-edec6814948c"><p>The <b>BGP_POLICY_MODIFY</b> structure<a id="Appendix_A_Target_188"></a><a aria-label="Product behavior note 188" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_188" data-linktype="relative-path">&lt;188&gt;</a> specifies an attribute of the
BGP route that MUST be modified if the policy is matched.</p><dl>
<dd>
<div><pre> typedef struct _BGP_POLICY_MODIFY  {
   BGP_POLICY_MODIFY_ATTR_TYPE eAttrType;
   union {
     DWORD dwCommunity;
     DWORD dwLocalPref;
     BGP_IP_ADDRESS nextHop;
     DWORD dwMed;
   } ModifyAttr;
 } BGP_POLICY_MODIFY,
  *PBGP_POLICY_MODIFY;
</pre></div>
</dd></dl><p><b>eAttrType: </b>Specifies the attribute type that
is used to modify a BGP route. This value MUST be one of the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>AddCommunity (0x1)</td>
  <td>A community attribute with the value specified in the dwCommunity field is added to the BGP route.</td>
 </tr><tr>
  <td>RemoveCommunity (0x2)</td>
  <td>A community attribute with the value specified in the dwCommunity field is removed from the BGP route (if present).</td>
 </tr><tr>
  <td>NewLocalPref (0x3)</td>
  <td>A Local preference attribute with the value specified in the dwLocalPref field is added or modified to the BGP route.</td>
 </tr><tr>
  <td>NewNextHop (0x4)</td>
  <td>The next hop specified in the nextHop field is updated to the BGP route.</td>
 </tr><tr>
  <td>NewMed (0x5)</td>
  <td>The MED attribute in the BGP route is updated with the MED attribute specified in the dwMed field.</td>
 </tr></tbody></table>
</dd></dl><p><b>dwCommunity: </b>Specifies the value of the
community attribute used to modify a BGP route.</p><p><b>dwLocalPref: </b>Specifies the value of the local
preference that is used to modify the path attribute of a BGP route. </p><p><b>nextHop: </b>Specifies the value of the next hop
that is used to modify the path attribute of a BGP route</p><p><b>dwMed: </b>Specifies the value of the MED that is
used to modify the MED attribute of a BGP route.</p></div>