Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

[DPM/ACA Schema] Update Routing_rules and Add RoutingRuleExtraInfo Message #381

Merged
merged 4 commits into from
Sep 11, 2020

Conversation

er1cthe0ne
Copy link
Contributor

@er1cthe0ne er1cthe0ne commented Sep 9, 2020

This is a proposal of DPM/ACA contract change to support routing rules in Alcor Control Agent. In a high-level, routing rules are use for:

  1. internet - route to sent to internet gateway
  2. custom gateway
  3. custom host route
  4. cross VPC - route to VPC (peering) gateway

Notable changes includes

  • Update routing_rules message to include NextHopInfo for looking up with additional needed information.
  • Remove the neighbor host DVR mac for L3 neighbor configuration as an optimization
  • Update the router e2e workflow accordingly

@er1cthe0ne er1cthe0ne added the contract new or modified service interfaces label Sep 9, 2020
@er1cthe0ne er1cthe0ne self-assigned this Sep 9, 2020
@er1cthe0ne er1cthe0ne changed the title [DPM-ACA Contract] update routing_rules and add new NextHopInfo message [DPM-ACA Contract] update routing_rules and add RoutingRuleExtraInfo message Sep 10, 2020
string destination = 4;
string nextHop = 5;
string destination = 4; // destination IP, could be 154.12.42.24/32 (host address) or 0.0.0.0/0 (network address)
string next_hop_ip = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect this has to be IP, or could be others like a label?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is expected to be IP only, confirmed with James this morning.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. "nexthop" should be an IP address of a gateway, but we can use "nexthop_type" to indicate what type of the nexthop or gateway, such as "local", "vpc", "internet", "ngw", etc...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should it be nexthop_type or destination_type existed in RoutingRuleExtraInfo?

I think destination_type is more appropriate since it is more important about the destination.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay thanks for the confirmation.

Keep in mind that this change will ask an upstream microservices (either RM or others) to read the user-input rules (which uses next_hop) and convert the customer object into an infra object (with next_hop_ip).

string destination = 4;
string nextHop = 5;
string destination = 4; // destination IP, could be 154.12.42.24/32 (host address) or 0.0.0.0/0 (network address)
string next_hop_ip = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

Okay thanks for the confirmation.

Keep in mind that this change will ask an upstream microservices (either RM or others) to read the user-input rules (which uses next_hop) and convert the customer object into an infra object (with next_hop_ip).

@xieus xieus changed the title [DPM-ACA Contract] update routing_rules and add RoutingRuleExtraInfo message [DPM-ACA Contract] Update Routing_rules and Add RoutingRuleExtraInfo Message Sep 11, 2020
@xieus xieus changed the title [DPM-ACA Contract] Update Routing_rules and Add RoutingRuleExtraInfo Message [DPM/ACA Schema] Update Routing_rules and Add RoutingRuleExtraInfo Message Sep 11, 2020
@xieus xieus merged commit 30ec1f2 into futurewei-cloud:master Sep 11, 2020
@er1cthe0ne er1cthe0ne deleted the routing/rule branch November 19, 2020 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contract new or modified service interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants