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

Commit

Permalink
Merge pull request #30 from futurewei-cloud/lxie/webserver
Browse files Browse the repository at this point in the history
Add version number, add veth name and mac address to port, and add tunnel id to vpc and subnet
  • Loading branch information
Liguang Xie authored Jul 30, 2019
2 parents 1f056fb + ece4410 commit 30bf6de
Show file tree
Hide file tree
Showing 8 changed files with 1,547 additions and 878 deletions.
856 changes: 597 additions & 259 deletions src/com/futurewei/alioth/controller/schema/Port.java

Large diffs are not rendered by default.

271 changes: 167 additions & 104 deletions src/com/futurewei/alioth/controller/schema/SecurityGroup.java

Large diffs are not rendered by default.

686 changes: 407 additions & 279 deletions src/com/futurewei/alioth/controller/schema/Subnet.java

Large diffs are not rendered by default.

528 changes: 328 additions & 200 deletions src/com/futurewei/alioth/controller/schema/Vpc.java

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions src/schema/proto3/port.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ option java_outer_classname = "Port";
import "common.proto";

message PortConfiguration {
string project_id = 1;
string network_id = 2;
string id = 3;
string name = 4;
bool admin_state_up = 5;

int32 version = 1;

string project_id = 2;
string network_id = 3;
string id = 4;
string name = 5;
bool admin_state_up = 6;
string mac_address = 7;
string veth_name = 8;

message FixedIp {
string subnet_id = 1;
string ip_address = 2;
Expand All @@ -33,10 +37,10 @@ message PortConfiguration {
string value = 2;
}

repeated FixedIp fixed_ips = 6;
repeated SecurityGroupId security_group_ids = 7;
repeated AllowAddressPair allow_address_pairs = 8;
repeated ExtraDhcpOption extra_dhcp_options = 9;
repeated FixedIp fixed_ips = 9;
repeated SecurityGroupId security_group_ids = 10;
repeated AllowAddressPair allow_address_pairs = 11;
repeated ExtraDhcpOption extra_dhcp_options = 12;
}

message PortState {
Expand Down
10 changes: 6 additions & 4 deletions src/schema/proto3/securitygroup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ option java_outer_classname = "SecurityGroup";
import "common.proto";

message SecurityGroupConfiguration {
string project_id = 1;
string vpc_id = 2;
string name = 3;
int32 version = 1;

string project_id = 2;
string vpc_id = 3;
string name = 4;

enum Direction {
EGRESS = 0;
Expand All @@ -30,7 +32,7 @@ message SecurityGroupConfiguration {
string remote_group_id = 9;
}

repeated SecurityGroupRule security_group_rules = 4;
repeated SecurityGroupRule security_group_rules = 5;
}

message SecurityGroupState {
Expand Down
31 changes: 17 additions & 14 deletions src/schema/proto3/subnet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ option java_outer_classname = "Subnet";
import "common.proto";

message SubnetConfiguration {
string project_id = 1;
string vpc_id = 2;
string id = 3;
string name = 4;
string cidr = 5;

string gateway_ip = 6;
bool dhcp_enable = 7;
string availability_zone = 8;
string primary_dns = 9;
string secondary_dns = 10;
int32 version = 1;

string project_id = 2;
string vpc_id = 3;
string id = 4;
string name = 5;
string cidr = 6;
int64 tunnel_id = 7;

string gateway_ip = 8;
bool dhcp_enable = 9;
string availability_zone = 10;
string primary_dns = 11;
string secondary_dns = 12;

message DnsEntry {
string entry = 1;
Expand All @@ -34,9 +37,9 @@ message SubnetConfiguration {
string ip_address = 3;
}

repeated DnsEntry dns_list = 11;
repeated SecurityGroupId security_group_ids = 12;
repeated TransitSwitchIp transit_switch_ips = 13;
repeated DnsEntry dns_list = 13;
repeated SecurityGroupId security_group_ids = 14;
repeated TransitSwitchIp transit_switch_ips = 15;
}
message SubnetState {
OperationType operation_type = 1;
Expand Down
19 changes: 11 additions & 8 deletions src/schema/proto3/vpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ option java_outer_classname = "Vpc";
import "common.proto";

message VpcConfiguration {
string project_id = 1;
string id = 2;
string name = 3;
string cidr = 4;

int32 version = 1;

string project_id = 2;
string id = 3;
string name = 4;
string cidr = 5;
int64 tunnel_id = 6;

message SubnetId {
string id = 1;
}
Expand All @@ -27,9 +30,9 @@ message VpcConfiguration {
string ip_address = 2;
}

repeated SubnetId subnet_ids = 5;
repeated Route routes = 6;
repeated TransitRouterIp transit_router_ips = 7;
repeated SubnetId subnet_ids = 7;
repeated Route routes = 8;
repeated TransitRouterIp transit_router_ips = 9;
}

message VpcState {
Expand Down

0 comments on commit 30bf6de

Please sign in to comment.