Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 278

Advertising
background image

246

Network OS NETCONF Operations Guide

53-1003231-02

Configuring AMPP port-profiles

19

</allowed>

<native-vlan>300</native-vlan>

</trunk>

</switchport>

</vlan-profile>

</port-profile>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1705" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

3. Activate the profile.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="1706" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<port-profile-global

xmlns="urn:brocade.com:mgmt:brocade-port-profile">

<port-profile>

<name>vm1-port-profile</name>

<activate/>

</port-profile>

</port-profile-global>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1706" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

4. Associate the profile with the MAC address for each host.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="1707" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<port-profile-global

xmlns="urn:brocade.com:mgmt:brocade-port-profile">

<port-profile>

<name>vm1-port-profile</name>

<static>

<mac-adddress>0050.56bf:0001</mac-address>

</static>

</port-profile>

<port-profile>

<name>vm1-port-profile</name>

<static>

<mac-address>0050.56bf:0002</mac-address>

</static>

</port-profile>

Advertising