We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main
import ( "fmt"
"github.com/aristanetworks/goeapi" "github.com/aristanetworks/goeapi/module"
)
func main() { node, err := goeapi.ConnectTo("sp1") if err != nil { panic(err) } s := module.Show(node) showData, err := s.ShowIPBGPSummary() if err != nil { fmt.Println(err) } fmt.Printf("%v", showData.VRFs) }
When running I received the following error:
1 error(s) decoding:
Looking through the code base, I see the following struct:
type VRF struct { RouterID string json:"routerId" Peers map[string]BGPNeighborSummary json:"peers" VRF string json:"vrf" ASN int64 json:"asn" }
json:"routerId"
json:"peers"
json:"vrf"
json:"asn"
It may be safer to expect a string type
The text was updated successfully, but these errors were encountered:
package main import ( "fmt" "github.com/aristanetworks/goeapi" "github.com/aristanetworks/goeapi/module" ) type VRF struct { RouterID string `json:"routerId"` Peers map[string]module.BGPNeighborSummary `json:"peers"` VRF string `json:"vrf"` ASN interface{} `json:"asn"` } func main() { node, err := goeapi.ConnectTo("sp1") if err != nil { panic(err) } s := module.Show(node) showData, err := s.ShowIPBGPSummary() if err != nil { fmt.Println(err) } fmt.Printf("%v", showData.VRFs) }
Sorry, something went wrong.
No branches or pull requests
package main
import (
"fmt"
)
func main() {
node, err := goeapi.ConnectTo("sp1")
if err != nil {
panic(err)
}
s := module.Show(node)
showData, err := s.ShowIPBGPSummary()
if err != nil {
fmt.Println(err)
}
fmt.Printf("%v", showData.VRFs)
}
When running I received the following error:
1 error(s) decoding:
Looking through the code base, I see the following struct:
type VRF struct {
RouterID string
json:"routerId"
Peers map[string]BGPNeighborSummary
json:"peers"
VRF string
json:"vrf"
ASN int64
json:"asn"
}
It may be safer to expect a string type
The text was updated successfully, but these errors were encountered: