---
title: DAI
slug: enterprise-v6p1/dai
createdAt: 2025-12-18T08:51:07.526Z
---

# <font color="#1d50a2">AsterNOS-DAI</font>

This chapter provides examples on how to use Netconf to manage DAI configurations on AsterNOS devices.

## <font color="#1d50a2">Get Current DAI Configurations</font>

Request example to get all DAI configurations via **get-config** with subtree filter.

```xml
<filter type="subtree">
  <top>
    <dai/>
  </top>
</filter>
```

Response example

```xml
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <top>
    <dai>
      <interfaces>
        <interface>
          <name>Ethernet1</name>
          <enable>true</enable>
        </interface>
        <interface>
          <name>Vlan100</name>
          <enable>true</enable>
          <trusted-interfaces>Ethernet1</trusted-interfaces>
          <trusted-interfaces>Ethernet2</trusted-interfaces>
        </interface>
      </interfaces>
    </dai>
  </top>
</data>
```

## <font color="#1d50a2">Set DAI Configuration of Interface</font>

:::hint{type="warning"}
**NOTE:**
'enable' and 'trust-enable' cannot be configured as true at the same time
:::

Request example to set DAI configuration of interface to enabled via **edit-config**.

```xml
<config>
  <top>
    <dai>
      <interfaces>
        <interface>
          <name>Ethernet1</name>
          <enable>true</enable>
        </interface>
        <interface>
          <name>Vlan100</name>
          <enable>true</enable>
          <trusted-interfaces>Ethernet2</trusted-interfaces>
          <trusted-interfaces>Ethernet3</trusted-interfaces>
        </interface>
      </interfaces>
    </dai>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:bb24faf4-2dba-4801-bff1-1442572b985f">
  <ok/>
</rpc-reply>
```

Request example to set DAI configuration of interface to trust-enabled via **edit-config**.

```xml
<config>
  <top>
    <dai>
      <interfaces>
        <interface>
          <name>Ethernet1</name>
          <trust-enable>true</trust-enable>
        </interface>
      </interfaces>
    </dai>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:fcc408de-478d-41d7-b7c0-04aa28e5b649">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Delete DAI Configuration</font>

Request example to delete DAI configuration of interface via **edit-config**.

```xml
<config>
  <top>
    <dai>
      <interfaces>
        <interface operation="delete">
          <name>Ethernet1</name>
        </interface>
      </interfaces>
    </dai>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:8e4348a5-1175-44f1-b104-3ea41dab237b">
  <ok/>
</rpc-reply>
```

