beautypg.com

Example in yang, xml, and cli – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual

Page 320

background image

302

Multi-Service IronWare Administration Guide

53-1003028-02

Data models and mapping

8

The following code example shows the structure of a header statement, along with linkage and
meta information, which contains contact information and a high-level description of the module.

Example in YANG, XML, and CLI

Table 45

provides an example to describe the VLAN name in the YANG model and the equivalent

XML and CLI.

For further examples and information on the YANG model, refer to the Brocade MLX Series and
Brocade NetIron Family YANG Guide.

module netiron-config

{

namespace "http://brocade.com/ns/netconf/config/netiron-config/";

prefix "brcd";

include common-defs;

include vlan-config;

include interface-config;

include mpls-config;

organization

"Brocade Communications Inc.";

contact

"Technical Support Center"+

"130 Holger Way,"+

"San Jose, CA 95134"+

"Email: [email protected]"+

"Phone: 1-800-752-8061"+

"URL: www.brocade.com";

description

"NetIron Config module. VERSION: ";

revision 2011-04-20

{

description "Initial revision";

}

TABLE 45

Example in YANG, XML, and CLI

YANG

XML

CLI

leaf vlan-name

{

type string
{

length “1..31”;

}
description “VLAN Name”;

}

<brcd:vlan-name>example</brcd:vlan-name>

[no] vlan vlan-id [name vlan-name]