Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cvl/jsondata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ var json_validate_config_data = []string{`{
"mac": "4c:76:25:f4:70:82",
"default_pfcwd_status": "disable",
"deployment_id": "1",
"type": "ToRRouter"
"type": "ToRRouter",
"nexthop_group": "disabled"
}
}
}`,
Expand Down
8 changes: 8 additions & 0 deletions cvl/testdata/schema/sonic-device-metadata.yang
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ module sonic-device-metadata {
enum LeafRouter;
}
}

leaf nexthop_group {
type enumeration {
enum enabled;
enum disabled;
}
default disabled;
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion models/yang/sonic/import.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
# or glob patterns of basenames (like sonic-telemetry*.yang) can be specified.
# Other sonic yangs referred by these will also be copied.
#
SONICYANG_IMPORTS += sonic-sflow.yang
SONICYANG_IMPORTS += sonic-sflow.yang
SONICYANG_IMPORTS += sonic-device_metadata.yang