Skip to content
New issue

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

add auth_key field #792

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions partner_interconnect_attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ type BGP struct {
PeerASN int `json:"peer_router_asn,omitempty"`
// PeerRouterIP is the peer router IP
PeerRouterIP string `json:"peer_router_ip,omitempty"`
// AuthKey is the authentication key
AuthKey string `json:"auth_key,omitempty"`
}

// ServiceKey represents the service key of a Partner Interconnect Attachment.
Expand Down
4 changes: 3 additions & 1 deletion partner_interconnect_attachments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var vInterconnectTestObj = &PartnerInterconnectAttachment{
LocalRouterIP: "169.250.0.1",
PeerASN: 133937,
PeerRouterIP: "169.250.0.6",
AuthKey: "my-auth-key",
},
CreatedAt: time.Date(2024, 12, 26, 21, 48, 40, 995304079, time.UTC),
}
Expand Down Expand Up @@ -52,7 +53,8 @@ var vInterconnectTestJSON = `
"local_asn":64532,
"local_router_ip":"169.250.0.1",
"peer_router_asn":133937,
"peer_router_ip":"169.250.0.6"
"peer_router_ip":"169.250.0.6",
"auth_key":"my-auth-key"
},
"created_at":"2024-12-26T21:48:40.995304079Z"
}
Expand Down