Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 277

Advertising
background image

Network OS NETCONF Operations Guide

245

53-1003231-02

Configuring AMPP port-profiles

19

a. Under the <port-profile> node, specify the name of the port-profile:

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

b. Under the <port-profile> node, use the <vlan-profile> element to specify the VLAN

subprofile.

c. Under the <vlan-profile> node, specify the <switchport> node to change the mode to

Layer 2 and set the switching characteristics.

d. Under the <switchport> node, access the VLAN profile mode for the correct VLAN.

<switchport>

<access>

<vlan>

<name>200</name>

</vlan>

</access>

</switchport>

e. Under the <switchport> node, configure the trunk mode for the allowed VLAN IDs.

<switchport>

<trunk>

<allowed>

<vlan>

<add>10,20,30-40</add>

</vlan>

</allowed>

</trunk>

</switchport>

f.

Under the <switchport> node, configure the trunk mode to be a native VLAN.

<switchport>

<trunk>

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

</trunk>

</switchport>

The following example configures the VLAN profile.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

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

<vlan-profile>

<switchport>

<access>

<vlan>

<name>200</name>

</vlan>

</access>

<trunk>

<allowed>

<vlan>

<add>10,20,30-40</add>

</vlan>

Advertising