A virtual router allows the firewall to route
traffic from one network to another through its Layer 3 interfaces
or static routes. Each Layer 3 interface, loopback interface, and
VLAN interface defined on the firewall must be associated with a
virtual router. Each interface can belong to only one virtual router.
following steps show how to add an existing Ethernet interface to
the predefined virtual router,
Retrieve the existing virtual router named default.
Before you update an existing virtual router by adding
a new interface, you should retrieve the virtual router to identify
interfaces that are already assigned to that virtual router.
curl -X GET 'https://<firewall>/restapi/v10.0/Network/VirtualRouters'
--header 'X-PAN-KEY: <api-key>’
A successful response returns a list of existing
virtual routers and includes detailed information for each one.
The response object for this request is large, so the example response
below shows a partial response object. You can see the list of existing
interfaces, which will be necessary to include as request body parameters
if you are updating the interface list in the virtual router.