You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a NAT service instance with public network as its right network and a fake network as its left network and auto_policy set to True
Create a route-table object.
route_table = RouteTable("my-route-table")
Add a route with prefix=0.0.0.0/0 and next-hop as the service instance name to the route table.
route = RouteType(prefix="0.0.0.0/0", next_hop="default-domain:default-project:nat-instance1")
route_table.set_routes(RouteTableType(route))
Attach the route table to the network you want to attach to
vn.set_route_table(route_table)
Note:
You can provide any prefix instead of "0.0.0.0/0".
You can use the same RouteTable object to connect any number of networks.