Skip to content

Commit

Permalink
avoid breaking change
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist committed Aug 6, 2024
1 parent ab46204 commit 0a1151b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
11 changes: 7 additions & 4 deletions proto/route_rule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ message RouteRule {
// perform PA validation in the mapping table belonging to vnet_name. Default is set to true
optional bool pa_validation = 5;
// Optional
// Metering class-id
optional uint64 metering_class = 6 [deprecated = true];
// Optional
// Metering class aggregate bits
optional uint32 metering_class_or = 6;
optional uint32 metering_class_and = 7;
optional uint32 metering_class_or = 7;
optional uint32 metering_class_and = 8;
// Optional
// optional region_id which the vni/prefix belongs to as a string for any vendor optimizations
optional string region = 8;
route_type.RoutingType routing_type = 9;
optional string region = 9;
route_type.RoutingType routing_type = 10;
}

// ENI Inbound route table with VNI and optional SRC PA prefix
Expand Down
22 changes: 15 additions & 7 deletions proto/vnet_mapping.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,36 @@ import "route_type.proto";

message VnetMapping {
// reference to routing type
route_type.RoutingType routing_type = 1;
route_type.RoutingType action_type = 1 [deprecated = true]; // renamed as routing_type
// PA address for the CA
types.IpAddress underlay_ip = 2;
// Optional
// Inner dst mac
optional bytes mac_address = 3;
// Optional
// metering class-id
optional uint32 metering_class_or = 4;
optional uint64 metering_class = 4 [deprecated = true];
// Optional
// override the metering class-id coming from the route table
optional bool override_meter = 5 [deprecated = true];
// Optional
// if true, use the destination VNET VNI for encap. If false or not specified, use source VNET's VNI
optional bool use_dst_vni = 5;
optional bool use_dst_vni = 6;
// Optional
optional bool use_pl_sip_eni = 6;
optional bool use_pl_sip_eni = 7;
// Optional
// overlay src ip if routing_type is {privatelink}
optional types.IpPrefix overlay_sip_prefix = 7;
optional types.IpAddress overlay_sip = 8 [deprecated = true]; // changed to overlay_sip_prefix
// Optional
// overlay dst ip if routing_type is {privatelink}
optional types.IpPrefix overlay_dip_prefix = 8;
optional types.IpAddress overlay_dip = 9 [deprecated = true]; // changed to overlay_dip_prefix
// Optional
optional string tunnel = 9;
// ID of routing appliance if routing_type is {privatelinknsg}
optional uint32 routing_appliance_id = 10 [deprecated = true];
optional uint32 metering_class_or = 12;
optional types.IpPrefix overlay_sip_prefix = 13;
optional types.IpPrefix overlay_dip_prefix = 14;
optional string tunnel = 15;
}

// CA-PA mapping table for Vnet
Expand Down

0 comments on commit 0a1151b

Please sign in to comment.