Skip to content

Commit

Permalink
Remove mandatory keyword from YANG models
Browse files Browse the repository at this point in the history
Signed-off-by: Tejaswi Goel <[email protected]>
  • Loading branch information
Tejaswi-Goel committed Nov 15, 2019
1 parent d741e1b commit b8db15e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion models/yang/sonic/sonic-loopback-interface.yang
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ module sonic-loopback-interface {
}

leaf ip_prefix {
mandatory true;
type inet:ip-prefix;

}
Expand Down
1 change: 0 additions & 1 deletion models/yang/sonic/sonic-mgmt-interface.yang
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ module sonic-mgmt-interface {

leaf ip_prefix {
type inet:ip-prefix;

}

leaf gwaddr {
Expand Down
1 change: 0 additions & 1 deletion models/yang/sonic/sonic-vlan-interface.yang
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module sonic-vlan-interface {
}

leaf ip_prefix {
mandatory true;
type inet:ip-prefix;

}
Expand Down
3 changes: 0 additions & 3 deletions models/yang/sonic/sonic-vlan.yang
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ module sonic-vlan {
}

leaf ifname {
//type leafref {
//path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:ifname";
//}
type union {
type leafref {
path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:ifname";
Expand Down

0 comments on commit b8db15e

Please sign in to comment.