Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Add read-only mode #76

Open
wants to merge 1 commit into
base: dell_sonic
Choose a base branch
from
Open

Add read-only mode #76

wants to merge 1 commit into from

Conversation

seiferteric
Copy link

Check for file /etc/sonic/telemetry_readonly and if it exists, gNMI set and all gNOI rpc's will be disabled.

See https://gitlab.force10networks.com/e-sonic/sonic-buildimage/merge_requests/191

Copy link
Collaborator

@anand-kumar-subramanian anand-kumar-subramanian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If Microsoft comes back saying the file is not protected and anybody can write to the file and make the telemetry server RW, do we have an answer for them?

@seiferteric
Copy link
Author

You mean any root user? Is that a problem?

seiferteric pushed a commit that referenced this pull request Jun 15, 2021
Fix sonic-net/sonic-buildimage#7268

- Why I did it
The error message below is occurred in building image.
```
gnmi_server/server.go:144:42: cannot use srv (type *Server) as type system.SystemServer in argument to system.RegisterSystemServer:
  *Server does not implement system.SystemServer (missing system.mustEmbedUnimplementedSystemServer method)
```

- How I did it
Lock the version of github.com/openconfig/gnoi to previous version.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants