alcor icon indicating copy to clipboard operation
alcor copied to clipboard

[Data-Plane-Manager] DPM Input and Output payload of Test Cases

Open kevin-zhonghao opened this issue 5 years ago • 0 comments

This is created for information sharing and reference, NOT a real issue.

Scenario 1: Create first Port (P1) without neighbor at Host 1

Input:

{
    "rsType":"PORT",
    "opType":"CREATE",
    "portEntities":[
        {
            "bindingHostIP":"10.213.43.187",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "adminStateUp":true,
            "macAddress":"86:ea:77:ad:52:50",
            "vethName":"veth0",
            "fastPath":true,
            "fixedIps":[
                {
                    "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                    "ipAddress":"192.168.2.2"
                }
            ],
            "bindingHostId":"ephost_0",
            "networkNamespace":"/var/run/netns/test_netw_ns",
            "portSecurityEnabled":false,
            "revisionNumber":0,
            "uplinkStatusPropagation":false,
            "macLearningEnabled":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_cni_port1",
            "description":"",
            "id":"f37810eb-7f83-45fa-a4d4-1b31e75399d0"
        }
    ],
    "vpcs":[
        {
            "cidr":"192.168.0.0/16",
            "adminStateUp":false,
            "portSecurityEnabled":false,
            "routerExternal":false,
            "shared":false,
            "vlanTransparent":false,
            "isDefault":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_vpc",
            "description":"",
            "id":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
        }
    ],
    "subnets":[
        {
            "tunnelId":88888,
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "cidr":"192.168.2.0/24",
            "gatewayIp":"192.168.2.20",
            "dhcpEnable":false,
            "gatewayMacAddress":"96:ea:77:ad:52:55",
            "shared":false,
            "dnsPublishFixedIp":false,
            "useDefaultSubnetpool":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "description":"",
            "id":"a87e0f87-a2d9-44ef-9194-9a62f1785940"
        }
    ],
    "securityGroups":[
        {

        }
    ],
    "neighborInfos":[

    ],
    "neighborTable":[

    ],
    "internalRouterInfos":[
        {
            "configuration":{
                "id":"64e339bb-1a6c-47bd-9ee7-a0cf81a35172",
                "host_dvr_mac":"AA-BB-CC-A9-0F-EC",
                "subnet_routing_tables":[
                    {
                        "subnet_id":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                        "routing_rules":[
                            {
                                "id":"58f536d1-eb89-49cc-a3e6-756f70d206e0",
                                "name":"rule0",
                                "destination":"10.0.2.0/24",
                                "next_hop_ip":"10.0.2.1",
                                "priority":"100",
                                "operation_type":"CREATE",
                                "routing_rule_extra_info":{
                                    "next_hop_mac":"AA-BB-CC-B9-EE-F0"
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Output:

[10.213.43.187=subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.2.0/24"
    tunnel_id: 88888
  }
}
port_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d0"
    message_type: FULL
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    name: "test_cni_port1"
    mac_address: "86:ea:77:ad:52:50"
    admin_state_up: true
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.2.2"
    }
  }
}
security_group_states {
  configuration {
  }
}
dhcp_states {
  configuration {
    format_version: 1
    revision_number: 1
    subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    mac_address: "86:ea:77:ad:52:50"
    ipv4_address: "192.168.2.2"
  }
}
]

Scenario 2: Create Ports (P1, P2) without neighbor at Host 1, P1 and P2 are associated with same subnet

Input:

{
    "rsType":"PORT",
    "opType":"CREATE",
    "portEntities":[
        {
            "bindingHostIP":"10.213.43.187",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "adminStateUp":true,
            "macAddress":"86:ea:77:ad:52:50",
            "vethName":"veth0",
            "fastPath":true,
            "fixedIps":[
                {
                    "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                    "ipAddress":"192.168.2.2"
                }
            ],
            "bindingHostId":"ephost_0",
            "networkNamespace":"/var/run/netns/test_netw_ns",
            "portSecurityEnabled":false,
            "revisionNumber":0,
            "uplinkStatusPropagation":false,
            "macLearningEnabled":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_cni_port1",
            "description":"",
            "id":"f37810eb-7f83-45fa-a4d4-1b31e75399d0"
        },
        {
            "bindingHostIP":"10.213.43.187",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "adminStateUp":true,
            "macAddress":"86:ea:77:ad:52:51",
            "vethName":"veth0",
            "fastPath":true,
            "fixedIps":[
                {
                    "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                    "ipAddress":"192.168.2.3"
                }
            ],
            "bindingHostId":"ephost_0",
            "networkNamespace":"/var/run/netns/test_netw_ns",
            "portSecurityEnabled":false,
            "revisionNumber":0,
            "uplinkStatusPropagation":false,
            "macLearningEnabled":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_cni_port2",
            "description":"",
            "id":"f37810eb-7f83-45fa-a4d4-1b31e75399d1"
        }
    ],
    "vpcs":[
        {
            "cidr":"192.168.0.0/16",
            "adminStateUp":false,
            "portSecurityEnabled":false,
            "routerExternal":false,
            "shared":false,
            "vlanTransparent":false,
            "isDefault":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_vpc",
            "description":"",
            "id":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
        }
    ],
    "subnets":[
        {
            "tunnelId":88888,
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "cidr":"192.168.2.0/24",
            "gatewayIp":"192.168.2.20",
            "dhcpEnable":false,
            "gatewayMacAddress":"96:ea:77:ad:52:55",
            "shared":false,
            "dnsPublishFixedIp":false,
            "useDefaultSubnetpool":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "description":"",
            "id":"a87e0f87-a2d9-44ef-9194-9a62f1785940"
        }
    ],
    "securityGroups":[
        {

        }
    ],
    "neighborInfos":[

    ],
    "neighborTable":[

    ],
    "internalRouterInfos":[
        {
            "configuration":{
                "id":"64e339bb-1a6c-47bd-9ee7-a0cf81a35172",
                "host_dvr_mac":"AA-BB-CC-A9-0F-EC",
                "subnet_routing_tables":[
                    {
                        "subnet_id":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                        "routing_rules":[
                            {
                                "id":"58f536d1-eb89-49cc-a3e6-756f70d206e0",
                                "name":"rule0",
                                "destination":"10.0.2.0/24",
                                "next_hop_ip":"10.0.2.1",
                                "priority":"100",
                                "operation_type":"CREATE",
                                "routing_rule_extra_info":{
                                    "next_hop_mac":"AA-BB-CC-B9-EE-F0"
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Output:

[10.213.43.187=subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.2.0/24"
    tunnel_id: 88888
  }
}
port_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d1"
    message_type: FULL
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    name: "test_cni_port2"
    mac_address: "86:ea:77:ad:52:51"
    admin_state_up: true
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.2.3"
    }
  }
}
port_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d0"
    message_type: FULL
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    name: "test_cni_port1"
    mac_address: "86:ea:77:ad:52:50"
    admin_state_up: true
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.2.2"
    }
  }
}
security_group_states {
  configuration {
  }
}
dhcp_states {
  configuration {
    format_version: 1
    revision_number: 1
    subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    mac_address: "86:ea:77:ad:52:50"
    ipv4_address: "192.168.2.2"
  }
}
dhcp_states {
  configuration {
    format_version: 1
    revision_number: 1
    subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    mac_address: "86:ea:77:ad:52:51"
    ipv4_address: "192.168.2.3"
  }
}
]

Scenario 3: Create Port P6 with neighbor at Host 1, Exist port : P1(d0) - 2.2, P2(d1) - 3.4, P3(d2) - 2.3,3.3, P4(d3) - 3.2 (P1, P2) are in Host 1, (P3, P4) are in Host 2 Host1: 2.2, 3.4; Host2: 2.3, 3.2, 3.3

Input:

{
    "rsType":"PORT",
    "opType":"CREATE",
    "portEntities":[
        {
            "bindingHostIP":"10.213.43.187",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "adminStateUp":true,
            "macAddress":"86:ea:77:ad:52:50",
            "vethName":"veth0",
            "fastPath":true,
            "fixedIps":[
                {
                    "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                    "ipAddress":"192.168.3.5"
                }
            ],
            "bindingHostId":"ephost_0",
            "networkNamespace":"/var/run/netns/test_netw_ns",
            "portSecurityEnabled":false,
            "revisionNumber":0,
            "uplinkStatusPropagation":false,
            "macLearningEnabled":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_cni_port6",
            "description":"",
            "id":"f37810eb-7f83-45fa-a4d4-1b31e75399d5"
        }
    ],
    "vpcs":[
        {
            "cidr":"192.168.0.0/16",
            "adminStateUp":false,
            "portSecurityEnabled":false,
            "routerExternal":false,
            "shared":false,
            "vlanTransparent":false,
            "isDefault":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "name":"test_vpc",
            "description":"",
            "id":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
        }
    ],
    "subnets":[
        {
            "tunnelId":88888,
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "cidr":"192.168.2.0/24",
            "gatewayIp":"192.168.2.20",
            "dhcpEnable":false,
            "gatewayMacAddress":"96:ea:77:ad:52:55",
            "shared":false,
            "dnsPublishFixedIp":false,
            "useDefaultSubnetpool":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "description":"",
            "id":"a87e0f87-a2d9-44ef-9194-9a62f1785940"
        },
        {
            "tunnelId":88888,
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "cidr":"192.168.3.0/24",
            "gatewayIp":"192.168.3.20",
            "dhcpEnable":false,
            "gatewayMacAddress":"96:ea:77:ad:52:55",
            "shared":false,
            "dnsPublishFixedIp":false,
            "useDefaultSubnetpool":false,
            "projectId":"3dda2801-d675-4688-a63f-dcda8d327f50",
            "description":"",
            "id":"a87e0f87-a2d9-44ef-9194-9a62f1785941"
        }
    ],
    "securityGroups":[
        {

        }
    ],
    "neighborInfos":[
        {
            "hostIp":"10.213.43.187",
            "hostId":"ephost_0",
            "portId":"f37810eb-7f83-45fa-a4d4-1b31e75399d0",
            "portMac":"86:ea:77:ad:52:55",
            "portIp":"192.168.2.2",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940"
        },
        {
            "hostIp":"10.213.43.187",
            "hostId":"ephost_0",
            "portId":"f37810eb-7f83-45fa-a4d4-1b31e75399d3",
            "portMac":"86:ea:77:ad:52:55",
            "portIp":"192.168.3.4",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785941"
        },
        {
            "hostIp":"10.213.43.163",
            "hostId":"ephost_1",
            "portId":"f37810eb-7f83-45fa-a4d4-1b31e75399d1",
            "portMac":"86:ea:77:ad:52:57",
            "portIp":"192.168.2.3",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785940"
        },
        {
            "hostIp":"10.213.43.163",
            "hostId":"ephost_1",
            "portId":"f37810eb-7f83-45fa-a4d4-1b31e75399d2",
            "portMac":"86:ea:77:ad:52:58",
            "portIp":"192.168.3.2",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785941"
        },
        {
            "hostIp":"10.213.43.163",
            "hostId":"ephost_1",
            "portId":"f37810eb-7f83-45fa-a4d4-1b31e75399d1",
            "portMac":"86:ea:77:ad:52:58",
            "portIp":"192.168.3.3",
            "vpcId":"9192a4d4-ffff-4ece-b3f0-8d36e3d88038",
            "subnetId":"a87e0f87-a2d9-44ef-9194-9a62f1785941"
        }
    ],
    "neighborTable":[
        {
            "neighborType":"L3",
            "localIp":"192.168.3.5",
            "neighborIp":"192.168.2.2"
        },
        {
            "neighborType":"L3",
            "localIp":"192.168.3.5",
            "neighborIp":"192.168.2.3"
        },
        {
            "neighborType":"L2",
            "localIp":"192.168.3.5",
            "neighborIp":"192.168.3.4"
        },
        {
            "neighborType":"L2",
            "localIp":"192.168.3.5",
            "neighborIp":"192.168.3.2"
        },
        {
            "neighborType":"L2",
            "localIp":"192.168.3.5",
            "neighborIp":"192.168.3.3"
        }
    ],
    "internalRouterInfos":[
        {
            "configuration":{
                "id":"64e339bb-1a6c-47bd-9ee7-a0cf81a35172",
                "host_dvr_mac":"AA-BB-CC-A9-0F-EC",
                "subnet_routing_tables":[
                    {
                        "subnet_id":"a87e0f87-a2d9-44ef-9194-9a62f1785940",
                        "routing_rules":[
                            {
                                "id":"58f536d1-eb89-49cc-a3e6-756f70d206e0",
                                "name":"rule0",
                                "destination":"10.0.2.0/24",
                                "next_hop_ip":"10.0.2.1",
                                "priority":"100",
                                "operation_type":"CREATE",
                                "routing_rule_extra_info":{
                                    "next_hop_mac":"AA-BB-CC-B9-EE-F0"
                                }
                            }
                        ]
                    },
                    {
                        "subnet_id":"a87e0f87-a2d9-44ef-9194-9a62f1785941",
                        "routing_rules":[
                            {
                                "id":"58f536d1-eb89-49cc-a3e6-756f70d206e1",
                                "name":"rule1",
                                "destination":"10.0.3.0/24",
                                "next_hop_ip":"10.0.3.1",
                                "priority":"100",
                                "operation_type":"CREATE",
                                "routing_rule_extra_info":{
                                    "next_hop_mac":"AA-BB-CC-B9-EE-F1"
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Output:

[10.213.43.187=subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.2.0/24"
    tunnel_id: 88888
    gateway {
      ip_address: "192.168.2.20"
      mac_address: "96:ea:77:ad:52:55"
    }
  }
}
subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.3.0/24"
    tunnel_id: 88888
    gateway {
      ip_address: "192.168.3.20"
      mac_address: "96:ea:77:ad:52:55"
    }
  }
}
port_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d5"
    message_type: FULL
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    name: "test_cni_port6"
    mac_address: "86:ea:77:ad:52:50"
    admin_state_up: true
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.3.5"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d5"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:55"
    host_ip_address: "10.213.43.187"
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.3.5"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d0"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:55"
    host_ip_address: "10.213.43.187"
    fixed_ips {
      neighbor_type: L3
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.2.2"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d3"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:55"
    host_ip_address: "10.213.43.187"
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
      ip_address: "192.168.3.4"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d1"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:57"
    host_ip_address: "10.213.43.163"
    fixed_ips {
      neighbor_type: L3
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.2.3"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d2"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:58"
    host_ip_address: "10.213.43.163"
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
      ip_address: "192.168.3.2"
    }
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d1"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:58"
    host_ip_address: "10.213.43.163"
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
      ip_address: "192.168.3.3"
    }
  }
}
security_group_states {
  configuration {
  }
}
dhcp_states {
  configuration {
    format_version: 1
    revision_number: 1
    subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    mac_address: "86:ea:77:ad:52:50"
    ipv4_address: "192.168.3.5"
  }
}
router_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "64e339bb-1a6c-47bd-9ee7-a0cf81a35172"
    message_type: FULL
    host_dvr_mac_address: "AA-BB-CC-A9-0F-EC"
    subnet_routing_tables {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      routing_rules {
        id: "58f536d1-eb89-49cc-a3e6-756f70d206e0"
        name: "rule0"
        destination: "10.0.2.0/24"
        next_hop_ip: "10.0.2.1"
        priority: 100
        routing_rule_extra_info {
          next_hop_mac: "AA-BB-CC-B9-EE-F0"
        }
      }
    }
    subnet_routing_tables {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
      routing_rules {
        id: "58f536d1-eb89-49cc-a3e6-756f70d206e1"
        name: "rule1"
        destination: "10.0.3.0/24"
        next_hop_ip: "10.0.3.1"
        priority: 100
        routing_rule_extra_info {
          next_hop_mac: "AA-BB-CC-B9-EE-F1"
        }
      }
    }
  }
},
10.213.43.163=subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.2.0/24"
    tunnel_id: 88888
    gateway {
      ip_address: "192.168.2.20"
      mac_address: "96:ea:77:ad:52:55"
    }
  }
}
subnet_states {
  operation_type: INFO
  configuration {
    format_version: 1
    id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    cidr: "192.168.3.0/24"
    tunnel_id: 88888
    gateway {
      ip_address: "192.168.3.20"
      mac_address: "96:ea:77:ad:52:55"
    }
  }
}
port_states {
  configuration {
  }
}
neighbor_states {
  configuration {
    format_version: 1
    revision_number: 2
    id: "f37810eb-7f83-45fa-a4d4-1b31e75399d5"
    project_id: "3dda2801-d675-4688-a63f-dcda8d327f50"
    vpc_id: "9192a4d4-ffff-4ece-b3f0-8d36e3d88038"
    mac_address: "86:ea:77:ad:52:55"
    host_ip_address: "10.213.43.187"
    fixed_ips {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      ip_address: "192.168.3.5"
    }
  }
}

security_group_states {
  configuration {
  }
}
dhcp_states {
  configuration {
  }
}
router_states {
  configuration {
    format_version: 1
    revision_number: 1
    id: "64e339bb-1a6c-47bd-9ee7-a0cf81a35172"
    message_type: FULL
    host_dvr_mac_address: "AA-BB-CC-A9-0F-EC"
    subnet_routing_tables {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785940"
      routing_rules {
        id: "58f536d1-eb89-49cc-a3e6-756f70d206e0"
        name: "rule0"
        destination: "10.0.2.0/24"
        next_hop_ip: "10.0.2.1"
        priority: 100
        routing_rule_extra_info {
          next_hop_mac: "AA-BB-CC-B9-EE-F0"
        }
      }
    }
    subnet_routing_tables {
      subnet_id: "a87e0f87-a2d9-44ef-9194-9a62f1785941"
      routing_rules {
        id: "58f536d1-eb89-49cc-a3e6-756f70d206e1"
        name: "rule1"
        destination: "10.0.3.0/24"
        next_hop_ip: "10.0.3.1"
        priority: 100
        routing_rule_extra_info {
          next_hop_mac: "AA-BB-CC-B9-EE-F1"
        }
      }
    }
  }
}
]

kevin-zhonghao avatar Nov 12 '20 19:11 kevin-zhonghao