Skip to content

Commit 6205cd7

Browse files
authored
Expose GetYanglibInfo func (#180)
1 parent 28e54f5 commit 6205cd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

translib/yanglib_app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (app *yanglibApp) processGet(dbs [db.MaxDB]*db.DB, fmtType TranslibFmtType)
144144
glog.Infof("vars = %s", app.pathInfo.Vars)
145145

146146
var resp GetResponse
147-
ylib, err := getYanglibInfo()
147+
ylib, err := GetYanglibInfo()
148148
if err != nil {
149149
return resp, err
150150
}
@@ -255,9 +255,9 @@ type yanglibBuilder struct {
255255
ygotModules *ocbinds.IETFYangLibrary_ModulesState
256256
}
257257

258-
// getYanglibInfo returns the ygot IETFYangLibrary_ModulesState object
258+
// GetYanglibInfo returns the ygot IETFYangLibrary_ModulesState object
259259
// with all yang library information.
260-
func getYanglibInfo() (ylib *ocbinds.IETFYangLibrary_ModulesState, err error) {
260+
func GetYanglibInfo() (ylib *ocbinds.IETFYangLibrary_ModulesState, err error) {
261261
theYanglibMutex.Lock()
262262
if theYanglibCache == nil {
263263
glog.Infof("Building yanglib cache")

0 commit comments

Comments
 (0)