Skip to content

Commit

Permalink
rename to link_id
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreYang committed Jan 20, 2023
1 parent d43e943 commit e205796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/collector/corechecks/snmp/internal/metadata/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type TopologyLinkSide struct {

// TopologyLinkMetadata contains topology interface to interface links metadata
type TopologyLinkMetadata struct {
ID string `json:"id"`
LinkID string `json:"link_id"`
SourceType string `json:"source_type"`
Local *TopologyLinkSide `json:"local"`
Remote *TopologyLinkSide `json:"remote"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/collector/corechecks/snmp/profile_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ profiles:
],
"links": [
{
"id": "profile-metadata:1.2.3.4:101.1",
"link_id": "profile-metadata:1.2.3.4:101.1",
"source_type": "lldp",
"local": {
"device": {
Expand Down Expand Up @@ -592,7 +592,7 @@ profiles:
}
},
{
"id": "profile-metadata:1.2.3.4:102.2",
"link_id": "profile-metadata:1.2.3.4:102.2",
"source_type": "lldp",
"local": {
"device": {
Expand Down

0 comments on commit e205796

Please sign in to comment.