Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 279

Advertising
background image

Network OS NETCONF Operations Guide

247

53-1003231-02

Configuring AMPP port-profiles

19

<port-profile>

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

<static>

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

</static>

</port-profile>

<port-profile>

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

<static>

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

</static>

</port-profile>

<port-profile>

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

<static>

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

</static>

</port-profile>

</port-profile-global>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Adding a C-TAG classification to trunk VLAN port-profile

This tasks demonstrates adding a C-TAG range to an existing trunk VLAN port-profile. In this
example, the trunk VLAN port-profile named “PROFILE_1”.

1. Issue an <edit-config> RPC to configure the <interface> node in the

urn:brocade.com:mgmt:brocade-port-profile namespace.

2. Under the <port-profile> node, specify the <name> element.

3. Under the <vlan-profile> element, include the following elements:

a. In the <name> element, specify the profile name.

b. Include the <switchport> elements to configure the profile as a trunk VLAN using the

<trunk> element.

c. Add the <trunk-vlan-classification> element and include the <allowed> and <vlan>

elements.

d. Specify the <trunk-vlan-id> value and the <trunk-ctag-range> value.

The following example configures a trunk VLAN with a C-TAG range.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<name>PROFILE_1</name>

<vlan-profile>

Advertising