I have been trying to configure VPP interfaces through Honeycomb.

When I request all operational data using -
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
    <get/>
</rpc>
I have a section in the output involving the interfaces -
<interfaces-state xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
<interface>
<name>host-ens33</name>
<phys-address>02:fe:9d:d8:52:86</phys-address>
<admin-status>up</admin-status>
<ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
<address>
<ip>192.168.93.171</ip>
<prefix-length>24</prefix-length>
</address>
...

And so, in order to configure the interfaces, I send a request like this:
<rpc message-id="m-7" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <edit-config>
        <target>
            <candidate/>
        </target>
        <config>
            <interfaces-state 
xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
                <interface>
                    <name>host-ens33</name>
                    <oper-status>up</oper-status>
                    <admin-status>up</admin-status>
                </interface>
            </interfaces-state>
        </config>
    </edit-config>
</rpc>

However I receive the following error:
<ERROR>org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFailedException:
 Child 
/(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces-state
 is not present in schema tree.</ERROR>

What is the reason for this? Am I forming the configuration request  wrong?

Thanks,
Sivan.
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev
  • [vpp-dev] int... siva...@campus.technion.ac.il
    • Re: [vpp... Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)

Reply via email to