Skip to content

Commit

Permalink
Add test case for inet:ip-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dpino committed May 9, 2018
1 parent 3e77868 commit 6334a30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/yang/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,12 @@ function selftest()
description "internet of fruit";
type inet:ipv4-address;
}
leaf-list address {
type inet:ip-prefix;
description
"Address prefixes bound to this interface.";
}
}]])

local data = load_config_for_schema(test_schema,
Expand All @@ -1282,6 +1288,7 @@ function selftest()
contents { name baz; score 9; tree-grown true; }
}
addr 1.2.3.4;
address 1.2.3.4/24;
]])
for i =1,2 do
assert(data.fruit_bowl.description == 'ohai')
Expand Down

0 comments on commit 6334a30

Please sign in to comment.