-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support new gnmi config interface in telemetry container. (#7)
Why I did it Update telemetry container to support new gnmi config interface. How I did it Use new target to support mixed schema, and we can enable/disable telemetry and gnmi config interface. How to verify it Build target and run unit test.
- Loading branch information
Showing
30 changed files
with
3,849 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
package common_utils | ||
|
||
const GNMI_WORK_PATH = "/tmp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// +build !gnmi_native_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_NATIVE_WRITE = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// +build gnmi_native_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_NATIVE_WRITE = true |
10 changes: 5 additions & 5 deletions
10
gnmi_server/constants.go → gnmi_server/constants_translib.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// +build !gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_TRANSLIB_WRITE = false | ||
// +build !gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_TRANSLIB_WRITE = false |
10 changes: 5 additions & 5 deletions
10
gnmi_server/constants_readwrite.go → gnmi_server/constants_translib_write.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// +build gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_TRANSLIB_WRITE = true | ||
// +build gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const ENABLE_TRANSLIB_WRITE = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.