# US 2024/0267328 A1 · Filtering VPN and VRF Routes on Import and Export

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0267328 A1
- Document ID: US20240267328A1
- Status: Published application
- Kind: A1
- Application number: 18/309,033
- Filed: 2023-04-28
- Published: 2024-08-08
- Earliest claimed: 2023-02-03
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Matthieu Loriol; Sharad Birmiwal; Darragh Dunne
- Web page: https://patentgrep.com/patent/US20240267328A1

## CPC

- H04L 45/745: Address table lookup; Address filtering
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 45/02: Topology update or discovery
- H04L 45/54: {Organization of routing tables}
- H04L 45/586: of virtual routers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

User commands to export and import routes between a customer-facing VRF and a core-facing VRF in a PE device can include two filters. An export command installs VPN paths in the core-facing VRF based on VRF paths in a customer VRF. An export command includes a filter that selects VRF paths in the customer VRF from which VPN paths are generated. An editor function edits the generated VPN paths prior to being stored in the core-facing VRF. Conversely, an import command includes a filter that selects VPN paths in the core-facing VRF from which VRF paths are generated. An edit function edits the generated VRF paths prior to being stored in the customer VRF.

## Claims

### Claim 1

A method in a network device for importing and exporting routes between a source virtual routing and forwarding element (VRF) running on the network device and a target VRF running on the network device, the method comprising:
obtaining a route from a routing table in the source VRF;
matching contents of the obtained route with criteria in a filter, wherein the criteria in the filter match on attributes of routes contained in the routing table of the source VRF;
in response to the contents of the obtained route matching at least some of the criteria in the filter:
generating an intermediate route from the obtained route;
modifying the intermediate route according to a set of editing instructions; and
storing the modified intermediate route in a routing table in the target VRF; and
repeating the foregoing for each route in the source VRF.

### Claim 2 (depends on 1)

The method of claim 1, further comprising generating metadata from the obtained route, wherein modifying the intermediate route includes using the metadata.

### Claim 3 (depends on 1)

The method of claim 1, wherein the set of editing instructions includes storing criteria, wherein storing the modified intermediate route is conditional based on whether the modified intermediate route matches the storing criteria.

### Claim 4 (depends on 1)

The method of claim 1, further comprising receiving input from a user, the input comprising information that specifies the source and target VRFs, the filter, and the set of editing instructions.

### Claim 5 (depends on 1)

The method of claim 1, wherein the source VRF is a customer-facing VRF, wherein the target VRF is a core network-facing VRF.

### Claim 6 (depends on 1)

The method of claim 1, wherein routes in the source VRF are Unicast routes, wherein routes in the target VRF are virtual private network (VPN) routes and the intermediate route is a VPN path, wherein the set of editing instructions include instructions that match on VPN attributes in the intermediate route.

### Claim 7 (depends on 6)

The method of claim 6, wherein the target VRF comprises a plurality of routing tables, wherein the modified intermediate route is stored in one of the plurality of routing tables in the target VRF.

### Claim 8 (depends on 1)

The method of claim 1, wherein the source VRF is a core network-facing VRF, wherein the target VRF is a customer-facing VRF.

### Claim 9 (depends on 1)

The method of claim 1, wherein routes in the source VRF are VPN paths, wherein routes in the target VRF are Unicast routes and the intermediate route is a Unicast route, wherein the set of editing instructions include instructions that match on Unicast attributes in the intermediate route.

### Claim 10 (depends on 8)

The method of claim 8, wherein the obtained route is selected from one of a plurality of routing tables in the source VRF.

### Claim 11

A network device comprising:
one or more computer processors; and
a computer-readable storage device comprising instructions for controlling the one or more computer processors to:
access one or more routes from among a plurality of routes in a routing table of a source VRF according to a filter that matches on attributes in the plurality of routes; and
for each accessed route generate and store an intermediate route in a routing table in a target VRF.

### Claim 12 (depends on 11)

The network device of claim 11, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to:
generate the intermediate route from the accessed route; and
modify the intermediate route according to editing instructions.

### Claim 13 (depends on 12)

The network device of claim 12, wherein the source VRF is a customer-facing VRF and the plurality of routes are Unicast routes, wherein the filter matches on Unicast attributes in the Unicast routes, wherein the target VRF is a core network-facing VRF and the intermediate route is a VPN path, wherein the editing instructions include instructions that match on VPN attributes in the intermediate route.

### Claim 14 (depends on 12)

The network device of claim 12, wherein the source VRF is a core network-facing VRF and the plurality of routes are VPN paths, wherein the filter matches on VPN attributes in the VPN paths, wherein the target VRF is a customer-facing VRF and the intermediate route is a Unicast route, wherein the editing instructions include instructions that match on Unicast attributes in the intermediate route.

### Claim 15 (depends on 12)

The network device of claim 12, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to generate metadata from the obtained route, wherein the editing instructions includes instructions that use the metadata.

### Claim 16

A method in a network device for exchanging routes between VRFs instantiated in the network device, the method comprising:
accessing one or more routes from among a plurality of routes in a routing table of a source VRF according to a filter that matches on attributes in the plurality of routes; and
for each accessed route generating and storing an intermediate route in a routing table in a target VRF.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
generating the intermediate route from the accessed route; and
modifying the intermediate route according to editing instructions.

### Claim 18 (depends on 17)

The method of claim 17, wherein the source VRF is a customer-facing VRF and the plurality of routes are Unicast routes, wherein the filter matches on Unicast attributes in the Unicast routes, wherein the target VRF is a core network-facing VRF and the intermediate route is a VPN path, wherein the editing instructions include instructions that match on VPN attributes in the intermediate route.

### Claim 19 (depends on 17)

The method of claim 17, wherein the source VRF is a core network-facing VRF and the plurality of routes are VPN paths, wherein the filter matches on VPN attributes in the VPN paths, wherein the target VRF is a customer-facing VRF and the intermediate route is a Unicast route, wherein the editing instructions include instructions that match on Unicast attributes in the intermediate route.

### Claim 20 (depends on 17)

The method of claim 17, further comprising generating metadata from the obtained route, wherein the editing instructions include instructions that use the metadata.
