mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-22 20:26:44 +00:00
77ac0f0f78
Declare the versioned wire vocabulary for the vpc.* control-plane-to-
network-realisation boundary: subjects, payload types, the shared
{success,error} ack envelope and the vpcd-workers queue group, one
file per route family. No NATS I/O, no consumer switched over yet;
the package coexists with the fragmented originals pinned in the
prior characterization commit until slice 3 migrates call sites.
20 lines
604 B
Go
20 lines
604 B
Go
package networkv1
|
|
|
|
const (
|
|
// VPCCreateSubject asks vpcd to ensure the VPC's logical router exists.
|
|
// Fire-and-forget: the publisher does not wait for the ack envelope.
|
|
VPCCreateSubject = "vpc.create"
|
|
|
|
// VPCDeleteSubject asks vpcd to remove the VPC's logical router.
|
|
// Fire-and-forget.
|
|
VPCDeleteSubject = "vpc.delete"
|
|
)
|
|
|
|
// VPCEvent is the payload on VPCCreateSubject and VPCDeleteSubject.
|
|
// CidrBlock and VNI are meaningful on create only; delete needs only VpcId.
|
|
type VPCEvent struct {
|
|
VpcId string `json:"vpc_id"`
|
|
CidrBlock string `json:"cidr_block"`
|
|
VNI int64 `json:"vni"`
|
|
}
|