Skip to content

Add vrf service - #174

Draft
iljarotar wants to merge 1 commit into
mainfrom
switch-vrf-endpoint
Draft

Add vrf service#174
iljarotar wants to merge 1 commit into
mainfrom
switch-vrf-endpoint

Conversation

@iljarotar

Copy link
Copy Markdown
Contributor

Description

@iljarotar iljarotar self-assigned this Aug 11, 2026
@iljarotar iljarotar changed the title init vrf service Add vrf service Aug 11, 2026
// SwitchServiceGetRequest is the request payload for getting a switch.
message SwitchServiceGetRequest {
// Id of the switch to get
// Id of the switch to get.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better to have a dedicated punctuation fix pr.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I pushed this by mistake.

import "metalstack/api/v2/predefined_rules.proto";
import "metalstack/api/v2/vrf.proto";

// VRFService provides endpoints for managing VRFs connecting to machines outside of metal-stack.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess this needs to be discussed, i thought a network must be created, which creates a vrf and then we can add a administrative endpoint to expose the vrf of this network on additional switchports which do not have a machine connected.

@iljarotar iljarotar Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes a lot more sense. What do you think the endpoint should look like?

service NetworkService {
  rpc AddSwitchPorts(NetworkServiceAddSwitchPortRequest) returns (NetworkServiceAddSwitchPortResponse) {
    option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR;
    option (metalstack.api.v2.auditing) = AUDITING_INCLUDED;
  }
}

message NetworkServiceAddSwitchPortRequest {
  // VrfPorts maps switch IDs to the respective switch's ports that should be bound by this VRF.
  map<string, VRFPorts> vrf_ports = 1;
}

message VRFPorts {
  repeated metalstack.api.v2.SwitchNic nics = 1;
}

Something like this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but the request must contain the network for which these ports should be bound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants