Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
0125627a
Commit
0125627a
authored
3 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
Update forks/google/gnmi/model.go
parent
ac2bbb70
No related branches found
No related tags found
1 merge request
!161
Update forks/google/gnmi/model.go
Pipeline
#74732
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
forks/google/gnmi/model.go
+1
-10
1 addition, 10 deletions
forks/google/gnmi/model.go
with
1 addition
and
10 deletions
forks/google/gnmi/model.go
+
1
−
10
View file @
0125627a
...
...
@@ -67,16 +67,7 @@ func (m *Model) NewConfigStruct(jsonConfig []byte) (ygot.ValidatedGoStruct, erro
if
!
ok
{
return
nil
,
errors
.
New
(
"root node is not a ygot.ValidatedGoStruct"
)
}
ifaces
,
err
:=
getInterfaces
()
if
err
!=
nil
{
return
nil
,
err
}
device
,
ok
:=
rootStruct
.
(
*
oc
.
Device
)
if
!
ok
{
return
nil
,
errors
.
New
(
"root node is not a oc.Device"
)
}
device
.
Interfaces
=
ifaces
return
device
,
nil
return
rootStruct
,
nil
}
// SupportedModels returns a list of supported models.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment