Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 355

Advertising
background image

Network OS NETCONF Operations Guide

323

53-1003231-02

Virtual Fabric configuration with NETCONF overview

23

<running/>

</target>

<config>

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

<tengigabitethernet

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<name>1/0/1</name>

<switchport>

<trunk>

<native-vlan-xtagged-config>

<native-vlan-id-xtagged>5000</native-vlan-id-xtagged>

<native-vlan-ctag-id-xtagged>50</native-vlan-ctag-id-xtagged>

<native-vlan-egress-type-xtagged>tagged

</native-vlan-egress-type-xtagged>

</native-vlan-xtagged-config>

</trunk>

</switchport>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

5. The following NETCONF xml request configured the native-vlan-untagged on an L2 interface in

trunk-no-default-native mode.

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

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

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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<name>1/0/1</name>

<switchport>

<trunk>

<native-vlan-untagged-config>

<native-vlan-id-untagged>5001</native-vlan-id-untagged>

</native-vlan-untagged-config>

</trunk>

</switchport>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising