@@ -6,44 +6,50 @@ import "types.proto";
6
6
import "route_type.proto" ;
7
7
8
8
message VnetDirect {
9
- // destination vnet name if action_type is {vnet, vnet_direct}, a vnet other than eni's vnet means vnet peering
9
+ // destination vnet name if routing_type is {vnet, vnet_direct}, a vnet other than eni's vnet means vnet peering
10
10
string vnet = 1 ;
11
11
// overly_ip to lookup if routing_type is {vnet_direct}, use dst ip from packet if not specified
12
12
optional types.IpAddress overlay_ip = 2 ;
13
13
}
14
14
15
15
message ServiceTunnel {
16
16
// overlay ipv6 src ip if routing_type is {servicetunnel}
17
- types.IpAddress overlay_sip = 1 ;
17
+ types.IpAddress overlay_sip = 1 [ deprecated = true ]; // replaced by overlay_sip_prefix
18
18
// overlay ipv6 dst ip if routing_type is {servicetunnel}
19
- types.IpAddress overlay_dip = 2 ;
19
+ types.IpAddress overlay_dip = 2 [ deprecated = true ]; // replaced by overlay_dip_prefix
20
20
// underlay ipv4 src ip if routing_type is {servicetunnel}, this is the ST GW VIP (for ST traffic) or custom VIP
21
21
types.IpAddress underlay_sip = 3 ;
22
22
// underlay ipv4 dst ip to override if routing_type is {servicetunnel}, use dst ip from packet if not specified
23
23
types.IpAddress underlay_dip = 4 ;
24
+ types.IpAddress overlay_sip_prefix = 5 ;
25
+ types.IpAddress overlay_dip_prefix = 6 ;
24
26
}
25
27
26
28
message Route {
27
- route_type.RoutingType action_type = 1 ;
29
+ route_type.RoutingType action_type = 1 [ deprecated = true ]; // renamed as routing_type
28
30
oneof Action {
29
- // destination vnet name if action_type is vnet,, a vnet other than eni's vnet means vnet peering
31
+ // destination vnet name if routing_type is vnet,, a vnet other than eni's vnet means vnet peering
30
32
string vnet = 2 ;
31
- // destination vnet name if action_type is vnet_direct,, a vnet other than eni's vnet means vnet peering
33
+ // destination vnet name if routing_type is vnet_direct,, a vnet other than eni's vnet means vnet peering
32
34
route.VnetDirect vnet_direct = 3 ;
33
- // appliance id if action_type is {appliance}
35
+ // appliance id if routing_type is {appliance}
34
36
string appliance = 4 ;
35
- // service tunnel if action_type is {service_tunnel}
37
+ // service tunnel if routing_type is {service_tunnel}
36
38
route.ServiceTunnel service_tunnel = 5 ;
37
39
}
38
40
// Metering policy lookup enable (optional), default = false
39
- optional bool metering_policy_en = 6 ;
41
+ optional bool metering_policy_en = 6 [ deprecated = true ] ;
40
42
// Metering class-id, used if metering policy lookup is not enabled
41
- optional uint64 metering_class = 7 ;
43
+ optional uint64 metering_class = 7 [deprecated = true ];
44
+ optional uint32 metering_class_or = 8 ;
45
+ optional uint32 metering_class_and = 9 ;
46
+ route_type.RoutingType routing_type = 10 ;
42
47
}
43
48
44
49
// ENI route table with CA prefix for packet Outbound
45
50
message RouteKey {
46
- string eni = 1 ;
51
+ string eni = 1 [ deprecated = true ]; // renamed as group_id
47
52
// IP prefix string with prefix length. E.G. 10.1.0.0/16
48
53
string prefix = 2 ;
54
+ string group_id = 3 ;
49
55
}
0 commit comments