Skip to content

Commit

Permalink
add ifType to check interface-metrics print-interfaces output
Browse files Browse the repository at this point in the history
  • Loading branch information
babos77 committed Feb 12, 2021
1 parent 11dfdd1 commit 5ad5961
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/request/check_interface_metrics_request_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
type interfaceCheckOutput struct {
IfIndex string `json:"ifIndex"`
IfDescr string `json:"ifDescr"`
IfType string `json:"ifType"`
IfName string `json:"ifName"`
IfAlias string `json:"ifAlias"`
IfPhysAddress string `json:"ifPhysAddress"`
Expand Down Expand Up @@ -41,6 +42,9 @@ func (r *CheckInterfaceMetricsRequest) process(ctx context.Context) (Response, e
if interf.IfName != nil {
x.IfName = *interf.IfName
}
if interf.IfType != nil {
x.IfType = *interf.IfType
}
if interf.IfAlias != nil {
x.IfAlias = *interf.IfAlias
}
Expand Down

0 comments on commit 5ad5961

Please sign in to comment.