Skip to content

Commit

Permalink
vita: fix bugs in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Jan 25, 2019
1 parent e5247e0 commit 1da3b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
9 changes: 4 additions & 5 deletions src/program/vita/vita-esp-gateway.yang
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,17 @@ module vita-esp-gateway {
leaf preshared-key { type key32; mandatory true; }
}

choice router {
case v4-over-v4 {
container private-interface4 { uses interface4; }
container private-interface4 { uses interface4; }
choice public-router {
case over-v4 {
container public-interface4 { uses interface4; }
list route4 {
key id; unique "net-cidr4"; unique "preshared-key"; unique "spi"; uses route;
leaf net-cidr4 { type inet:ipv4-prefix; mandatory true; }
leaf gw-ip4 { type inet:ipv4-address-no-zone; }
}
}
case v4-over-v6 {
container private-interface4 { uses interface4; }
case over-v6 {
container public-interface6 { uses interface6; }
list route46 {
key id; unique "net-cidr4"; unique "preshared-key"; unique "spi"; uses route;
Expand Down
13 changes: 4 additions & 9 deletions src/program/vita/vita-gentest.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ module vita-gentest {

import vita-esp-gateway { prefix vita; }

choice router {
case v4-over-v4 {
container private-interface4 { uses vita:interface4; }
container public-interface4 { uses vita:interface4; }
}
case v4-over-v6 {
container private-interface4 { uses vita:interface4; }
container public-interface6 { uses vita:interface6; }
}
container private-interface4 { uses vita:interface4; }
choice public-router {
container public-interface4 { uses vita:interface4; }
container public-interface6 { uses vita:interface6; }
}

leaf negotiation-ttl { type vita:time-to-live; }
Expand Down

0 comments on commit 1da3b4f

Please sign in to comment.