Mgmt‑Interface
6 min
\<font color="#1d50a2">asternos mgmt interface\</font> note it's not supported to do a 'create'/'replace'/'delete' operation on 'mgmt interfaces' or 'mgmt interfaces/mgmt interface' container node this document provides examples of using netconf to manage management interfaces on network devices it includes examples of retrieving management interface configurations and modifying them \<font color="#1d50a2">get mgmt configuration\</font> request example to get current mgmt interface configuration via get config \<filter type="subtree"> \<top> \<mgmt interfaces> \<mgmt interface/> \</mgmt interfaces> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ c7801c02 0c5c 4515 b8dd 453fd1e105d4"> \<data xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0"> \<top> \<mgmt interfaces xmlns="http //asterfusion com/ns/yang/asternos mgmt interface"> \<mgmt interface> \<name>eth0\</name> \<vrf enable>false\</vrf enable> \<address> \<ip prefix>192 168 122 42/24\</ip prefix> \<gwaddr>192 168 122 1\</gwaddr> \</address> \</mgmt interface> \</mgmt interfaces> \</top> \</data> \</rpc reply> \<font color="#1d50a2">modify mgmt interface\</font> note use operation="create" to add a new ip address to the management interface (this operation will remove old mgmt ip) if you want to modify an mgmt ip's gwaddr, use operation="merge" instead request example to create a new ip address on the management interface via edit config \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ c7801c02 0c5c 4515 b8dd 453fd1e105d4"> \<config>\<top> \<mgmt interfaces> \<mgmt interface> \<name>eth0\</name> \<address operation="create"> \<ip prefix>192 168 122 42/24\</ip prefix> \<gwaddr>192 168 122 1\</gwaddr> \</address> \</mgmt interface> \</mgmt interfaces> \</top>\</config> \</rpc reply> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ ee0561f1 8170 427c a5f5 7c6ffbfc309d"> \<ok/> \</rpc reply> \<font color="#1d50a2">get mgmt interface via rpc show interface mgmt\</font> request example to retrieves the current management interface vrf status via show interface mgmt \<show interface mgmt/> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 8a94da11 87a0 4394 a6a9 aba2208ac361"> \<data xmlns="http //asterfusion com/ns/yang/asternos mgmt interface"> mgmt vrf config is not present managementvrf disabled mgmt vrf config is not present managementvrf disabled \</data> \</rpc reply>
