Name: yang
Owner: Juniper Networks
Description: Junos Yang module
Created: 2016-01-18 07:33:30.0
Updated: 2018-02-26 16:35:38.0
Pushed: 2018-01-18 10:08:01.0
Homepage: null
Size: 10186
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Yang models for the Junos platform
The Yang files are tested for compilation with pyang v1.5. Before consumption by an NMS, this requires changes to handle non-YANG Junos data models.
le junos {
space "http://xml.juniper.net/xnm/1.1/xnm";
ix junos;
rt tailf-common {
ix tailf;
For example, to handle key enumeration leafs:
community {
ey "community-name";
rdered-by user;
escription "BGP community properties associated with a route";
hoice community-action {
case case_1 {
leaf equal-literal {
description "Set the BGP communities in the route";
type empty;
}
}
case case_2 {
leaf set {
description "Set the BGP communities in the route";
type empty;
}
}
case case_3 {
leaf plus-literal {
description "Add BGP communities to the route";
type empty;
}
}
case case_4 {
leaf add {
description "Add BGP communities to the route";
type empty;
}
}
case case_5 {
leaf minus-literal {
description "Remove BGP communities from the route";
type empty;
}
}
case case_6 {
leaf delete {
description "Remove BGP communities from the route";
type empty;
}
}
eaf community-name {
description "Name to identify a BGP community";
type string;
changes to
community {
key "key1 community-name";
ordered-by user;
description "BGP community properties associated with a route";
leaf key1 {
tailf:junos-val-as-xml-tag;
type enumeration {
enum equal-literal {
description "Set the BGP communities in the route";
}
enum set {
description "Set the BGP communities in the route";
}
enum plus-literal {
description "Add BGP communities to the route";
}
enum add {
description "Add BGP communities to the route";
}
enum minus-literal {
description "Remove BGP communities from the route";
}
enum delete {
description "Remove BGP communities from the route";
}
}
}
leaf community-name {
description "Name to identify a BGP community";
type string;
}
yang-support@juniper.net