This section provides a sample of configuring IGMP user access using the edit-config method.
Operation |
XPATH |
|---|---|
edit-config |
|
Item |
Data |
Description |
|---|---|---|
VPN instance name |
ddd |
- |
VPN instance address family |
ipv4unicast |
- |
Interface on which IGMP is configured |
Vlanif10 |
- |
Whether to enable IGMP |
false |
- |
IGMP version running on the interface |
3 |
- |
Configure IGMP user access.
<?xml version="1.0" encoding="utf-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10">
<edit-config>
<target>
<running/>
</target>
<config>
<dgmp:dgmp xmlns:dgmp="http://www.huawei.com/netconf/vrp/huawei-dgmp">
<dgmp:dgmpIfCfgs>
<dgmp:dgmpIfCfg>
<dgmp:addrFamily>ipv4unicast</dgmp:addrFamily>
<dgmp:ifName>Vlanif10</dgmp:ifName>
<dgmp:gmpEnable>false</dgmp:gmpEnable>
<dgmp:version>3</dgmp:version>
</dgmp:dgmpIfCfg>
</dgmp:dgmpIfCfgs>
</dgmp:dgmp>
<mcastbase:mcastbase xmlns:mcastbase="http://www.huawei.com/netconf/vrp/huawei-mcastbase">
<mcastbase:mcastAfsEnables>
<mcastbase:mcastAfsEnable>
<mcastbase:vrfName>ddd</mcastbase:vrfName>
<mcastbase:addressFamily>ipv4unicast</mcastbase:addressFamily>
</mcastbase:mcastAfsEnable>
</mcastbase:mcastAfsEnables>
</mcastbase:mcastbase>
</config>
</edit-config>
</rpc>
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10">
<rpc-error>
<error-type>application</error-type>
<error-tag>invalid-value</error-tag>
<error-severity>error</error-severity>
<error-path>/huawei-dgmp:dgmp/dgmpIfCfgs/dgmpIfCfg[addrFamily='ipv4unicast'][ifName='Vlanif10']/ifName</error-path>
<error-message>validation failed(Leafref "/ietf-interfaces:interfaces/ietf-interfaces:interface/ietf-interfaces:name" of value "Vlanif10" points to a non-existing leaf.).</error-message>
</rpc-error>
</rpc-reply>