---
title: VRF
slug: aidc/X7_J-vrf
createdAt: 2025-12-29T10:28:56.010Z
---

Virtual Routing and Forwarding.

## <font color="#1d50a2">URLs Summary</font>

| **URL**                           | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| --------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/rpc/show-vrf-brief       | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-vrf-interface   | N       | Y        | N         | N       | N          |
| /rest/v1/running/vrfs/&#x7B;name} | Y       | Y        | Y         | N       | Y          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Show VRF of interface</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-vrf-interface
```

**response:**

```json
{
    "vrf": [
        {
            "name": "Vrfint1",
            "interfaces": [
                "Ethernet65"
            ]
        },
        {
            "name": "Vrfint2",
            "interfaces": [
                "Ethernet66"
            ]
        }
    ]
}
```

### <font color="#1d50a2">Get all the vrfs</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/vrfs
```

**response:**

```json
{
    "result": [
        {
            "name": "Vrfint1"
        },
        {
            "name": "Vrfint2"
        }
    ]
}
```

### <font color="#1d50a2">Create a vrf</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/vrfs
{
    "name": "Vrftest"
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">vrf entry</font>

**Tree Diagrams**

```plaintext
  +--rw vrfs
     +--rw vrf* [name]
        +--rw name
        +--rw mac?
```

**Table of Properties**

| **Name** | **Required** | **Type/Range**          | **Description**                                   |
| -------- | ------------ | ----------------------- | ------------------------------------------------- |
| vrfs     | M            |                         | Path-only node, has no configurable value.        |
| name     | M            | "default"<br />vrf name | (sub-property of vrfs)<br />                      |
| mac      | O            | A\:B:C\:D:E\:F          | (sub-property of vrfs)<br />Router MAC of the VRF |

### <font color="#1d50a2">Show vrf of interface</font>

**Tree Diagrams**

```plaintext
    +---x show-vrf-interface
    |  +--ro output
    |     +--ro vrf* [name]
    |        +--ro name
    |        +--ro interfaces*
```

**Table of Properties**

| **Name**           | **Required** | **Type/Range** | **Description**                                                               |
| ------------------ | ------------ | -------------- | ----------------------------------------------------------------------------- |
| show-vrf-interface | M            |                | Path-only node, has no configurable value.<br />Show slave interfaces of VRFs |
| vrf                | RO           |                | (sub-property of output)<br />Path-only node, has no configurable value.      |
| name               | RO           | vrf name       | (sub-property of vrf)<br />Name of the VRF                                    |
| interfaces         | RO           | string         | (sub-property of vrf)<br />Slave interfaces                                   |

### <font color="#1d50a2">Show vrf brief</font>

**Tree Diagrams**

```plaintext
    +---x show-vrf-brief
       +--ro output
          +--ro vrf* [name]
             +--ro name
             +--ro vni?
             +--ro mac?
```

**Table of Properties**

| **Name**       | **Required** | **Type/Range** | **Description**                                                                 |
| -------------- | ------------ | -------------- | ------------------------------------------------------------------------------- |
| show-vrf-brief | M            |                | Path-only node, has no configurable value.<br />Show all configurations of VRFs |
| vrf            | RO           |                | (sub-property of output)<br />Path-only node, has no configurable value.        |
| name           | RO           | vrf name       | (sub-property of vrf)<br />Name of the VRF                                      |
| vni            | RO           | 1..16777215    | (sub-property of vrf)<br />Bound VNI of the VRF                                 |
| mac            | RO           | A\:B:C\:D:E\:F | (sub-property of vrf)<br />Router MAC of the VRF                                |

