Configuring a new port-profile – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 274

242
Network OS NETCONF Operations Guide
53-1003231-02
Configuring AMPP port-profiles
19
Configuring a new port-profile
To support VM MAC address learning, the default port-profile is employed. The default profile is
different from the other user-defined AMPP profiles:
•
The port-profile ID (ppid) of the profile cannot be changed.
•
The VLAN subprofile cannot be modified.
•
The QoS subprofile and security-profile cannot be added.
•
The default port-profile cannot be activated.
•
When there are no port-profile-ports in the system, the default port-profile can be added with
the FCoE profile.
Brocade recommends that you create a new port-profile to accommodate your requirements. To
configure a new port-profile, perform the following steps. The following steps create and activate a
port-profile and associate it with the MAC address of each host.
1. Configure the physical interface before creating the port-profile.
2. Put the port under "port-profile-port" mode, using the <edit-config> element defined in
brocade-interface.yang
3. Create the <vm1-port-profile> profile.
4. Create the VLAN subprofile under the <vm1-port-profile>.
5. Under the VLAN subprofile, configure the <switchport> and <switchport mode trunk>
attributes.
6. Issue an <edit-config> RPC to create and configure a new port-profile name.
This step configures the <port-profile> node in the urn:brocade.com:mgmt:brocade-port-profile
namespace.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1701" 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>
<trunk>
<native-vlan>300</native-vlan>
<allowed>
<vlan>
<add>300</add>
</vlan>
</allowed>
</trunk>
</switchport>
</vlan-profile>
</port-profile>
</config>
</edit-config>
</rpc>