-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename compile env name for gnmi write #10
Why I did it I will add a future env var ENABLE_NATIVE_WRITE which is another kind of gnmi write mode. So, I need to rename TELEMETRY_WRITABLE and READ_WRITE_MODE to avoid conflict. How I did it Rename compile env var and build tag. How to verify it Run unit test for sonic-gnmi.
- Loading branch information
Showing
6 changed files
with
22 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// +build !readwrite | ||
// +build !gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const READ_WRITE_MODE = false | ||
const ENABLE_TRANSLIB_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// +build readwrite | ||
// +build gnmi_translib_write | ||
|
||
package gnmi | ||
|
||
const READ_WRITE_MODE = true | ||
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
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