Adding upstream version 3.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
64dbec996d
commit
cfcebb1a7d
569 changed files with 205393 additions and 0 deletions
10
tests/fuzz/corpus/lys_parse_mem/issue1004.yang
Normal file
10
tests/fuzz/corpus/lys_parse_mem/issue1004.yang
Normal file
|
@ -0,0 +1,10 @@
|
|||
module a {
|
||||
yang-version 1.1;
|
||||
namespace "a";
|
||||
prefix a;
|
||||
|
||||
leaf-list A {
|
||||
type pt8;
|
||||
default 0;
|
||||
}
|
||||
}
|
16
tests/fuzz/corpus/lys_parse_mem/issue1025.yang
Normal file
16
tests/fuzz/corpus/lys_parse_mem/issue1025.yang
Normal file
|
@ -0,0 +1,16 @@
|
|||
module a {
|
||||
yang-version 1.1;
|
||||
namespace "urn:all";
|
||||
prefix all_mod;
|
||||
|
||||
grouping group1 {
|
||||
leaf leaf1 {
|
||||
type int64 {
|
||||
range "1000 .. 50000" {
|
||||
error:message
|
||||
"Spec";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
9
tests/fuzz/corpus/lys_parse_mem/issue1027.yang
Normal file
9
tests/fuzz/corpus/lys_parse_mem/issue1027.yang
Normal file
|
@ -0,0 +1,9 @@
|
|||
module d{
|
||||
namespace "";
|
||||
prefix d;
|
||||
leaf f {
|
||||
type string;
|
||||
must ":e";
|
||||
default "";
|
||||
}
|
||||
}
|
13
tests/fuzz/corpus/lys_parse_mem/issue1040.yang
Normal file
13
tests/fuzz/corpus/lys_parse_mem/issue1040.yang
Normal file
|
@ -0,0 +1,13 @@
|
|||
module a {
|
||||
namespace "a";
|
||||
prefix a;
|
||||
|
||||
container c {
|
||||
leaf r {
|
||||
type leafref{
|
||||
path "../p";
|
||||
}
|
||||
default false;
|
||||
}
|
||||
}
|
||||
}
|
34
tests/fuzz/corpus/lys_parse_mem/issue1041.yang
Normal file
34
tests/fuzz/corpus/lys_parse_mem/issue1041.yang
Normal file
|
@ -0,0 +1,34 @@
|
|||
module foo {
|
||||
namespace foo;
|
||||
prefix foo;
|
||||
yang-version 1.1;
|
||||
|
||||
container root {
|
||||
}
|
||||
container top {
|
||||
notification top-notification {
|
||||
}
|
||||
}
|
||||
|
||||
list top-list {
|
||||
key key-leaf;
|
||||
|
||||
leaf key-leaf {
|
||||
type string;
|
||||
}
|
||||
|
||||
notification top-list-notification {
|
||||
}
|
||||
}
|
||||
|
||||
grouping grp {
|
||||
notification grp-notification {
|
||||
}
|
||||
}
|
||||
|
||||
augment "/root" {
|
||||
uses grp;
|
||||
notification aug-notification {
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
module issue1042_base-yang-types {
|
||||
yang-version 1.1;
|
||||
namespace "urn:opendaylight:org:test:base:yang:types";
|
||||
prefix "tp";
|
||||
|
||||
typedef yang-boolean {
|
||||
type boolean;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
module issue1042_test-type-provider-b {
|
||||
yang-version 1.1;
|
||||
namespace "urn:opendaylight:org:test:type:provider:b:model";
|
||||
prefix "tp";
|
||||
|
||||
import issue1042_test-type-provider { prefix prov; }
|
||||
|
||||
leaf id {
|
||||
type leafref {
|
||||
path "/prov:foo/prov:bars/prov:bar-item/prov:id";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
module issue1042_test-type-provider {
|
||||
yang-version 1.1;
|
||||
namespace "urn:opendaylight:org:test:type:provider:model";
|
||||
prefix "tp";
|
||||
|
||||
import issue1042_base-yang-types { prefix types; }
|
||||
|
||||
container construction-type-test {
|
||||
leaf yang-boolean {
|
||||
type types:yang-boolean;
|
||||
}
|
||||
}
|
||||
}
|
31
tests/fuzz/corpus/lys_parse_mem/issue1043.yang
Normal file
31
tests/fuzz/corpus/lys_parse_mem/issue1043.yang
Normal file
|
@ -0,0 +1,31 @@
|
|||
module SUPf-entity {
|
||||
yang-version 1.1;
|
||||
namespace "urn:ietf:params:xml:ns:yang:ietf-entity";
|
||||
prefix ent;
|
||||
|
||||
grouping ROLLBACK-ATTRIBUTES { leaf force {
|
||||
when "9./best-efmmmmmmmmmmmmmmmmmmmmm|mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmfort = 'falsq'" {
|
||||
}
|
||||
type boolean;
|
||||
default "false";
|
||||
}
|
||||
leaf best-effort {
|
||||
when ".</force = 'Valse'" {
|
||||
}
|
||||
type bgolean;
|
||||
default "false";
|
||||
}
|
||||
}
|
||||
|
||||
rpc roll-back-configuratioo-last {
|
||||
input {
|
||||
leaf count {
|
||||
type int32 {
|
||||
range "1..100"; }
|
||||
mandatory true;
|
||||
}
|
||||
uses ROLLBACK-ATTRIBUTES;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
16
tests/fuzz/corpus/lys_parse_mem/issue722.yang
Normal file
16
tests/fuzz/corpus/lys_parse_mem/issue722.yang
Normal file
|
@ -0,0 +1,16 @@
|
|||
module mod6 {
|
||||
prefix abc;
|
||||
namespace "http://www.example.com";
|
||||
|
||||
list list1 {
|
||||
key "key1";
|
||||
unique "5niq1";
|
||||
leaf key1 {
|
||||
type string;
|
||||
}
|
||||
|
||||
leaf uniq1 {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
17
tests/fuzz/corpus/lys_parse_mem/issue723.yang
Normal file
17
tests/fuzz/corpus/lys_parse_mem/issue723.yang
Normal file
|
@ -0,0 +1,17 @@
|
|||
module links {
|
||||
namespace "urn:module2";
|
||||
prefix mod2;
|
||||
|
||||
list list-for-augment {
|
||||
key "keyleaf";
|
||||
|
||||
leaf keyleaf {
|
||||
if-feature foo;
|
||||
type string;
|
||||
}
|
||||
|
||||
leaf test {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
22
tests/fuzz/corpus/lys_parse_mem/issue724.yang
Normal file
22
tests/fuzz/corpus/lys_parse_mem/issue724.yang
Normal file
|
@ -0,0 +1,22 @@
|
|||
module mod1 {
|
||||
namespace "urn:all";
|
||||
prefix av;
|
||||
yang-version 1.1;
|
||||
|
||||
leaf l1 {
|
||||
type union-type;
|
||||
}
|
||||
|
||||
leaf-list list5 {
|
||||
type string;
|
||||
}
|
||||
|
||||
typedef union-type {
|
||||
type union {
|
||||
type leafref {
|
||||
path /list5;
|
||||
}
|
||||
type union-type;
|
||||
}
|
||||
}
|
||||
}
|
14
tests/fuzz/corpus/lys_parse_mem/issue728.yang
Normal file
14
tests/fuzz/corpus/lys_parse_mem/issue728.yang
Normal file
|
@ -0,0 +1,14 @@
|
|||
module xpath {
|
||||
namespace "uretf:params:xml:ns:yang:1";
|
||||
prefix yang;
|
||||
|
||||
import ietf-yang-metadata {
|
||||
prefix md;
|
||||
revision-date 2016-08-05;
|
||||
}
|
||||
|
||||
md:annotation {
|
||||
description
|
||||
"description";
|
||||
}
|
||||
}
|
13
tests/fuzz/corpus/lys_parse_mem/issue733.yang
Normal file
13
tests/fuzz/corpus/lys_parse_mem/issue733.yang
Normal file
|
@ -0,0 +1,13 @@
|
|||
module b {
|
||||
namespace "urn:b";
|
||||
prefix b_mod;
|
||||
|
||||
revision 2015-01-01 {
|
||||
description P:li {
|
||||
n:dule xp{
|
||||
n:libydu{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
tests/fuzz/corpus/lys_parse_mem/issue734.yang
Normal file
17
tests/fuzz/corpus/lys_parse_mem/issue734.yang
Normal file
|
@ -0,0 +1,17 @@
|
|||
module x {
|
||||
namespace "urn:lin:b-vev";
|
||||
prefix b_dev_mod;
|
||||
|
||||
deviation /b_r-leaf {
|
||||
deviate add {
|
||||
unique "uniq1 cont2/uniq2 cont2/uniq3" {
|
||||
d:annotmeration {
|
||||
enum:first;
|
||||
enum last;
|
||||
enum before;
|
||||
enum after;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
tests/fuzz/corpus/lys_parse_mem/issue735.yang
Normal file
17
tests/fuzz/corpus/lys_parse_mem/issue735.yang
Normal file
|
@ -0,0 +1,17 @@
|
|||
module links {
|
||||
yang-version 1.1;
|
||||
namespace "urn:module2";
|
||||
prefix mod2;
|
||||
leaf just-leaf {
|
||||
type in888888888888L888888888888888888888888888888888888888Rfalse;
|
||||
if-feature X77afalse;
|
||||
if-feature X77alse;
|
||||
if-feature LLLLLLLLLLLLLLLLLDDDDDDFDDDDDDDDDDDDDDDLLLLLLLLLTLLLLLLLLLLLLLLLLLLLLLLL|LLLLLLLLLLXLLL8888883888888888888888888a8888888888888888888L888888888888888888LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL8888883888888888888888888a8888888888888888888L888888888888888888888888888888888888888Rfalse;
|
||||
if-feature X77afalse;
|
||||
if-feature X77alse;
|
||||
if-feature LLLLLLLLLLLLLLDDDDDDDDDDD888888888888888888888Rfalse;
|
||||
if-feature X77afalse;
|
||||
if-feature H77alse;
|
||||
if-feature LLLLLLLLLLLLLLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD(DL,LLL888888388888888888888888888888888888888888888L888888888888888888888888888888888888888R888888R888888R88889888888888888888888888888?8888ean;
|
||||
}
|
||||
}
|
11
tests/fuzz/corpus/lys_parse_mem/issue739.yang
Normal file
11
tests/fuzz/corpus/lys_parse_mem/issue739.yang
Normal file
|
@ -0,0 +1,11 @@
|
|||
module ietf-datastores {
|
||||
yang-version 1.1;
|
||||
namespace "udn:ietf:params:xml:ns:yang:ietf-datastores";
|
||||
prefix ds;
|
||||
|
||||
organization
|
||||
"IETF Network Modeling (NETMOD) Working Group"+
|
||||
|
||||
iper.net>
|
||||
}
|
||||
|
14
tests/fuzz/corpus/lys_parse_mem/issue740.yang
Normal file
14
tests/fuzz/corpus/lys_parse_mem/issue740.yang
Normal file
|
@ -0,0 +1,14 @@
|
|||
module xpath-1.1 {
|
||||
namespace "urn:xpath-1.1";
|
||||
prefix xp;
|
||||
|
||||
container top {
|
||||
leaf identref {
|
||||
type mdentityref {
|
||||
base:iwo;
|
||||
pattern '[A-Z]+';
|
||||
pattern '[A-Z]+';
|
||||
pattern '[A-Z]+';
|
||||
pattern '[A-Z]+';
|
||||
pattern '[./key2, 2, 3), 'a') and not(starts-with(./key2, 'a')))";
|
||||
}
|
16
tests/fuzz/corpus/lys_parse_mem/issue741.yang
Normal file
16
tests/fuzz/corpus/lys_parse_mem/issue741.yang
Normal file
|
@ -0,0 +1,16 @@
|
|||
module mod6 {
|
||||
prefix adc;
|
||||
namespace "http://www.example.com";
|
||||
|
||||
grouping g {
|
||||
list ll {
|
||||
leaf:date {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
container ccc {
|
||||
uses g;
|
||||
}
|
||||
}
|
15
tests/fuzz/corpus/lys_parse_mem/issue742.yang
Normal file
15
tests/fuzz/corpus/lys_parse_mem/issue742.yang
Normal file
|
@ -0,0 +1,15 @@
|
|||
module links {
|
||||
yang-version 1.1;
|
||||
namespace "urn:mo:1";
|
||||
prefix yang;
|
||||
|
||||
import ietf-yang-metadata {
|
||||
prefix md;
|
||||
revision-date 2016-08-05;
|
||||
}
|
||||
|
||||
md:annotation value {
|
||||
reference "RFC7950 section 7.7.9.";
|
||||
description;
|
||||
}
|
||||
}
|
31
tests/fuzz/corpus/lys_parse_mem/issue769.yang
Normal file
31
tests/fuzz/corpus/lys_parse_mem/issue769.yang
Normal file
|
@ -0,0 +1,31 @@
|
|||
module mod6 {
|
||||
|
||||
prefix abc;
|
||||
namespace "http://www.example.c;
|
||||
yang-version 1.1;
|
||||
|
||||
container cont1 {
|
||||
//x" {
|
||||
|
||||
}
|
||||
|
||||
augment "/aug-cont" {
|
||||
list list2 {
|
||||
key "key2";
|
||||
leaf key2 {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
notification nn {
|
||||
typedef Mt {
|
||||
type string {
|
||||
length "1..255";
|
||||
}
|
||||
}
|
||||
|
||||
container log {
|
||||
grouping g {
|
||||
notification nn {
|
||||
type j2an;
|
||||
}
|
||||
}
|
BIN
tests/fuzz/corpus/lys_parse_mem/issue771.yang
Normal file
BIN
tests/fuzz/corpus/lys_parse_mem/issue771.yang
Normal file
Binary file not shown.
54
tests/fuzz/corpus/lys_parse_mem/issue772.yang
Normal file
54
tests/fuzz/corpus/lys_parse_mem/issue772.yang
Normal file
|
@ -0,0 +1,54 @@
|
|||
module all {
|
||||
yang-version 1.1;
|
||||
namespace "urn:all";
|
||||
prefix all_mod;
|
||||
|
||||
grouping t1 {
|
||||
uses group1 {
|
||||
}
|
||||
|
||||
leaf leaf12 {
|
||||
type bits {
|
||||
bit flag0 {
|
||||
position 0;
|
||||
if-feature "feat1";
|
||||
}
|
||||
bit flag1;
|
||||
bit flag2 {
|
||||
position 2;
|
||||
}
|
||||
|
||||
bit flag3 {
|
||||
position 3;
|
||||
}
|
||||
}
|
||||
default "flag0 flag3";
|
||||
}
|
||||
|
||||
list list1 {
|
||||
key "leaf18";
|
||||
unique "leaf1--------------------------------------------------- leaf leaT18 {
|
||||
type string;
|
||||
}
|
||||
|
||||
|
||||
action act1 {
|
||||
input ons on thg leaf";
|
||||
leaf leaf30 {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
augment "/cont1" {
|
||||
leaf leaf17 {
|
||||
type ideZtityref {
|
||||
base all_imp:iden44;
|
||||
}
|
||||
must "../leaf17 = 'all_imp:iden }
|
||||
|
||||
action act1 {
|
||||
t5'";
|
||||
}
|
||||
}
|
||||
}
|
BIN
tests/fuzz/corpus/lys_parse_mem/issue773.yang
Normal file
BIN
tests/fuzz/corpus/lys_parse_mem/issue773.yang
Normal file
Binary file not shown.
55
tests/fuzz/corpus/lys_parse_mem/issue774.yang
Normal file
55
tests/fuzz/corpus/lys_parse_mem/issue774.yang
Normal file
|
@ -0,0 +1,55 @@
|
|||
module state-lists {
|
||||
yang-version 1.1;
|
||||
namespace "urn:state-lists";
|
||||
prefix sl;
|
||||
|
||||
container cont {
|
||||
config false;
|
||||
grouping group1 {
|
||||
leaf leaf3 {
|
||||
type tdef2 {
|
||||
length "3..9 | 30..40";
|
||||
pattern "[ac
|
||||
}*";
|
||||
}
|
||||
|
||||
units "none";
|
||||
default "aaa";
|
||||
}
|
||||
|
||||
typedef tdef2 {
|
||||
type string {
|
||||
length "2..17 | 20..50";
|
||||
pattern "[ab]*";
|
||||
}
|
||||
}
|
||||
|
||||
container cont1 {
|
||||
uses group1 {
|
||||
if-feature "feat2";
|
||||
refine "leaf1" {
|
||||
if-feature "feat3";
|
||||
must "24 - 4 = number('20')";
|
||||
default "25";
|
||||
config true;
|
||||
mandatory false;
|
||||
description "dsc";
|
||||
reference "none";
|
||||
}
|
||||
}
|
||||
|
||||
leaf leaf4 {
|
||||
type int64 {
|
||||
range "1000 .. 50000" {
|
||||
error-message
|
||||
"Special e
|
||||
}
|
||||
.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
16
tests/fuzz/corpus/lys_parse_mem/issue777.yang
Normal file
16
tests/fuzz/corpus/lys_parse_mem/issue777.yang
Normal file
|
@ -0,0 +1,16 @@
|
|||
module m0d0 {
|
||||
prefix a0c;
|
||||
namespace ¢0000000000000000000000";
|
||||
|
||||
list list0 {
|
||||
key "key1";
|
||||
unique "0n000";
|
||||
leaf key1 {
|
||||
type string;
|
||||
}
|
||||
|
||||
leaf uniq0 {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
BIN
tests/fuzz/corpus/lys_parse_mem/issue780.yang
Normal file
BIN
tests/fuzz/corpus/lys_parse_mem/issue780.yang
Normal file
Binary file not shown.
8
tests/fuzz/corpus/lys_parse_mem/issue788.yang
Normal file
8
tests/fuzz/corpus/lys_parse_mem/issue788.yang
Normal file
|
@ -0,0 +1,8 @@
|
|||
module d00000000 {
|
||||
namespace "n";
|
||||
prefix d;
|
||||
leaf l1 {
|
||||
type string;
|
||||
when "/l0{k='when']";
|
||||
}
|
||||
}
|
10
tests/fuzz/corpus/lys_parse_mem/issue789.yang
Normal file
10
tests/fuzz/corpus/lys_parse_mem/issue789.yang
Normal file
|
@ -0,0 +1,10 @@
|
|||
module m {
|
||||
prefix p;
|
||||
namespace "n";
|
||||
grouping g {
|
||||
}
|
||||
|
||||
grouping s {
|
||||
uses g;
|
||||
}
|
||||
}
|
3
tests/fuzz/corpus/lys_parse_mem/issue791.yang
Normal file
3
tests/fuzz/corpus/lys_parse_mem/issue791.yang
Normal file
|
@ -0,0 +1,3 @@
|
|||
module m {
|
||||
include ""
|
||||
}
|
13
tests/fuzz/corpus/lys_parse_mem/issue791_2.yang
Normal file
13
tests/fuzz/corpus/lys_parse_mem/issue791_2.yang
Normal file
|
@ -0,0 +1,13 @@
|
|||
module m {
|
||||
namespace "n";
|
||||
prefix p;
|
||||
|
||||
container c {
|
||||
leaf trg-bits {
|
||||
type bits {
|
||||
bit b1;
|
||||
bit "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
tests/fuzz/corpus/lys_parse_mem/issue795.yang
Normal file
7
tests/fuzz/corpus/lys_parse_mem/issue795.yang
Normal file
|
@ -0,0 +1,7 @@
|
|||
module m {
|
||||
prefix p;
|
||||
namespace "n";
|
||||
list l {
|
||||
must "";
|
||||
}
|
||||
}
|
7
tests/fuzz/corpus/lys_parse_mem/issue804.yang
Normal file
7
tests/fuzz/corpus/lys_parse_mem/issue804.yang
Normal file
|
@ -0,0 +1,7 @@
|
|||
module m {
|
||||
prefix p;
|
||||
namespace n;
|
||||
list l {
|
||||
if-feature 0(;
|
||||
}
|
||||
}
|
7
tests/fuzz/corpus/lys_parse_mem/issue805.yang
Normal file
7
tests/fuzz/corpus/lys_parse_mem/issue805.yang
Normal file
|
@ -0,0 +1,7 @@
|
|||
module d{
|
||||
namespace n;
|
||||
prefix p;
|
||||
list l {
|
||||
when "";
|
||||
}
|
||||
}
|
9
tests/fuzz/corpus/lys_parse_mem/issue807.yang
Normal file
9
tests/fuzz/corpus/lys_parse_mem/issue807.yang
Normal file
|
@ -0,0 +1,9 @@
|
|||
module d{
|
||||
namespace "";
|
||||
prefix d;
|
||||
leaf f {
|
||||
type string;
|
||||
must "0e";
|
||||
default "";
|
||||
}
|
||||
}
|
12
tests/fuzz/corpus/lys_parse_mem/issue826.yang
Normal file
12
tests/fuzz/corpus/lys_parse_mem/issue826.yang
Normal file
File diff suppressed because one or more lines are too long
10
tests/fuzz/corpus/lys_parse_mem/issue827.yang
Normal file
10
tests/fuzz/corpus/lys_parse_mem/issue827.yang
Normal file
|
@ -0,0 +1,10 @@
|
|||
module eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee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eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeod {
|
||||
yang-version 1.1;
|
||||
namespace "urn:all";
|
||||
prefix p;
|
||||
|
||||
container cond1 { }
|
||||
|
||||
grouping group1 {
|
||||
}
|
||||
}
|
7
tests/fuzz/corpus/lys_parse_mem/issue872.yang
Normal file
7
tests/fuzz/corpus/lys_parse_mem/issue872.yang
Normal file
|
@ -0,0 +1,7 @@
|
|||
module d{
|
||||
namespace "";prefix d;
|
||||
leaf f{
|
||||
type w0iiiiiiiiiiiiiiiiiiiiiiiiiiiii0000;
|
||||
default "";
|
||||
}
|
||||
}
|
28
tests/fuzz/corpus/lys_parse_mem/issue874.yang
Normal file
28
tests/fuzz/corpus/lys_parse_mem/issue874.yang
Normal file
|
@ -0,0 +1,28 @@
|
|||
module o00 { prefix c; namespace "00t000000w0000p00000
|
||||
00n000e0000n00000
|
||||
|
||||
0cANG m0dule de0in0s an 'exten0ion' s0atemns
|
||||
for defining 0etadat0 an0Copyri0ht (0) 2016 IE00 T0uct and th0 persons identifi4.0 of the IETF Tru0t0s Le0a0 P0ovi0i00s
|
||||
Relatin0 t0 IE0F D0cu0e0 of RFC 7 (/tru0te0.ietf0org0license-info0.
|
||||
|
||||
Th0s ve00io0 of thi0 YA0G mod0le i0 pa't of RFC 78 (http:/0www-e0itor.!rg/info/0fc0902); see the 0FC i000lf
|
||||
f0r fodule, i ";revision 2016-08-05{
|
||||
description
|
||||
"Initial revision.";
|
||||
reference "RFC 7952: Defining and 0sin0 0etada0a with YANG";
|
||||
}
|
||||
|
||||
extension annotation{
|
||||
argument name;
|
||||
description "This extension allows f0r defietadat0tadata an00tation0 in
|
||||
YAN0 modules. 0he 0sion.";
|
||||
reference "RFC 7952: Defining and 0sin0 0etada0a with YANG";
|
||||
}
|
||||
|
||||
extension annotation{
|
||||
argument name;
|
||||
description " YAN0 modules. 0he 0sion.";
|
||||
reference "RFC 7952: Defining and 0sin0 0etada0a with YANG";
|
||||
}
|
||||
|
||||
}
|
18
tests/fuzz/corpus/lys_parse_mem/issue970.yang
Normal file
18
tests/fuzz/corpus/lys_parse_mem/issue970.yang
Normal file
|
@ -0,0 +1,18 @@
|
|||
module p{
|
||||
namespace "";
|
||||
prefix p;
|
||||
|
||||
container ports{
|
||||
list port {
|
||||
key name;
|
||||
leaf name{
|
||||
type string;}
|
||||
}
|
||||
}
|
||||
augment "/ports/port" {
|
||||
when "0</*=0";
|
||||
leaf i {
|
||||
type int32;
|
||||
}
|
||||
}
|
||||
}
|
10
tests/fuzz/corpus/lys_parse_mem/issue973.yang
Normal file
10
tests/fuzz/corpus/lys_parse_mem/issue973.yang
Normal file
|
@ -0,0 +1,10 @@
|
|||
module p{
|
||||
namespace "";
|
||||
prefix p;
|
||||
|
||||
leaf mgmt-interface {
|
||||
type leafref {
|
||||
path "";
|
||||
}
|
||||
}
|
||||
}
|
28
tests/fuzz/corpus/lys_parse_mem/issue975.yang
Normal file
28
tests/fuzz/corpus/lys_parse_mem/issue975.yang
Normal file
|
@ -0,0 +1,28 @@
|
|||
module example-ietf-interfaces {
|
||||
yang-version 1.1;
|
||||
|
||||
namespace "urn:ietf:params:xml:ns:yang:example-ietf-interfaces";
|
||||
|
||||
prefix if;
|
||||
import ietf-yang-types {
|
||||
prefix yang;
|
||||
}
|
||||
|
||||
container interfaces-state {
|
||||
config false;
|
||||
list interface {
|
||||
key "name";
|
||||
leaf name {
|
||||
type string;
|
||||
}
|
||||
container statistics {
|
||||
leaf in-broadcast-pkts {
|
||||
when "derived-from(if:type, 'ianaifp:multicast')" {
|
||||
}
|
||||
|
||||
type yang:counter64;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
tests/fuzz/corpus/lys_parse_mem/issue976_a.yang
Normal file
12
tests/fuzz/corpus/lys_parse_mem/issue976_a.yang
Normal file
|
@ -0,0 +1,12 @@
|
|||
module a{
|
||||
yang-version 1.1;
|
||||
namespace "ns1";
|
||||
prefix a;
|
||||
|
||||
import issue976_b{
|
||||
prefix acl;
|
||||
}
|
||||
|
||||
augment "/acl:acls/acl:acl/acl:aces/acl:ace/acl:matches" {
|
||||
}
|
||||
}
|
32
tests/fuzz/corpus/lys_parse_mem/issue976_b.yang
Normal file
32
tests/fuzz/corpus/lys_parse_mem/issue976_b.yang
Normal file
|
@ -0,0 +1,32 @@
|
|||
module issue976_b {
|
||||
yang-version 1.1;
|
||||
namespace "ns2";
|
||||
prefix acl;
|
||||
|
||||
container acls {
|
||||
list acl {
|
||||
key "name";
|
||||
leaf name {
|
||||
type string;
|
||||
}
|
||||
container aces {
|
||||
list ace {
|
||||
key "name";
|
||||
leaf name {
|
||||
type string {
|
||||
length "1..64";
|
||||
}
|
||||
}
|
||||
container matches {
|
||||
leaf egress-interface {
|
||||
type if:interface-ref;
|
||||
}
|
||||
leaf ingress-interface {
|
||||
type if:interface-ref;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
41
tests/fuzz/corpus/lys_parse_mem/issue979_a.yang
Normal file
41
tests/fuzz/corpus/lys_parse_mem/issue979_a.yang
Normal file
|
@ -0,0 +1,41 @@
|
|||
module a {
|
||||
namespace "a";
|
||||
prefix a;
|
||||
|
||||
import b{
|
||||
prefix b;
|
||||
}
|
||||
|
||||
typedef HexOffset {
|
||||
type string;
|
||||
}
|
||||
|
||||
grouping group {
|
||||
container action {
|
||||
config false;
|
||||
container register {
|
||||
config false;
|
||||
list location {
|
||||
key "location";
|
||||
config false;
|
||||
leaf location {
|
||||
type string;
|
||||
}
|
||||
b:action "write" {
|
||||
input {
|
||||
leaf reg-addr {
|
||||
type HexOffset;
|
||||
mandatory true;
|
||||
}
|
||||
}
|
||||
output {
|
||||
leaf result {
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
tests/fuzz/corpus/lys_parse_mem/issue979_b.yang
Normal file
13
tests/fuzz/corpus/lys_parse_mem/issue979_b.yang
Normal file
|
@ -0,0 +1,13 @@
|
|||
module b {
|
||||
namespace "b";
|
||||
prefix b;
|
||||
|
||||
extension action {
|
||||
argument name {
|
||||
b:arg-type {
|
||||
type b:identifier;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
tests/fuzz/corpus/lys_parse_mem/pull1524.yang
Normal file
1
tests/fuzz/corpus/lys_parse_mem/pull1524.yang
Normal file
|
@ -0,0 +1 @@
|
|||
module ''+'c
|
4
tests/fuzz/corpus/lys_parse_mem/pull1568.yang
Normal file
4
tests/fuzz/corpus/lys_parse_mem/pull1568.yang
Normal file
|
@ -0,0 +1,4 @@
|
|||
module
|
||||
f{grouping
|
||||
s{list
|
||||
ym{
|
67
tests/fuzz/corpus/lys_parse_mem/pull1592.yang
Normal file
67
tests/fuzz/corpus/lys_parse_mem/pull1592.yang
Normal file
File diff suppressed because one or more lines are too long
8
tests/fuzz/corpus/lys_parse_mem/pull958.yang
Normal file
8
tests/fuzz/corpus/lys_parse_mem/pull958.yang
Normal file
|
@ -0,0 +1,8 @@
|
|||
module m {
|
||||
prefix p;
|
||||
namespace "
|
||||
|
||||
list l {
|
||||
must "";
|
||||
}
|
||||
}
|
9
tests/fuzz/corpus/lys_parse_mem/pull960.yang
Normal file
9
tests/fuzz/corpus/lys_parse_mem/pull960.yang
Normal file
|
@ -0,0 +1,9 @@
|
|||
module d{
|
||||
namespace "";
|
||||
prefix d;
|
||||
leaf f {
|
||||
type string;
|
||||
must ":e";
|
||||
default "";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue