DAI
7 min
\<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 \<filter type="subtree"> \<top> \<dai/> \</top> \</filter> response example \<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> 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 \<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 \<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 \<config> \<top> \<dai> \<interfaces> \<interface> \<name>ethernet1\</name> \<trust enable>true\</trust enable> \</interface> \</interfaces> \</dai> \</top> \</config> response example \<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 \<config> \<top> \<dai> \<interfaces> \<interface operation="delete"> \<name>ethernet1\</name> \</interface> \</interfaces> \</dai> \</top> \</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 8e4348a5 1175 44f1 b104 3ea41dab237b"> \<ok/> \</rpc reply>
