Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 572

540
Network OS NETCONF Operations Guide
53-1003231-02
Enabling preemption
35
The procedure for enabling pre-emption differs depending on the Ethernet link interface type,
which for VRRP can be a physical Ethernet link (10 Gigabit Ethernet, Gigabit Ethernet, 40 Gigabit
Ethernet), port-channel, or VE. For VRRP-E, the Ethernet link interface type must be VE.
Enabling preemption for physical Ethernet or port-channel
To enable preemption for a physical or port-channel router interface, perform the following steps.
1. Issue the <edit-config> RPC to configure the <interface> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
2. Under the <interface> node, specify the <gigabitethernet>, <tengigabitethernet>,
<fortygigabitethernet>, <hundredgigabitethernet>, or <port-channel> node, depending on the
Ethernet link interface type.
3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,
<hundredgigabitethernet>, or <port-channel> node, include the <name> element and specify
the name of the backup router interface.
4. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,
<hundredgigabitethernet>, or <port-channel> node, include the <vrrp> node element located
in the urn:brocade.com:mgmt:brocade-vrrp namespace.
5. Under the <vrrp> node, include the following leaf elements.
a. In the <vrid> element, specify the group ID of the VRRP router group.
b. Include the empty <preempt-mode> element to enable preemption.
The following example enables preemption.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="3502" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>101/1/6</name>
<vrrp xmlns="urn:brocade.com:mgmt:brocade-vrrp">
<vrid>1</vrid>
<preempt-mode/>
</vrrp>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="3502" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>