[sysrepo-devel] augmented if-interface aooears to no longer work

Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) raszabo at cisco.com
Tue Oct 11 11:15:22 UTC 2016


Hi,

Your edit-config goes into candidate datastore, whereas the get-config goes into running.
In order to put your changes from candidate to running you need to issue a commit.

Rastislav

-----Original Message-----
From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On Behalf Of Joan Landry
Sent: Tuesday, October 11, 2016 12:54 PM
To: sysrepo-devel at sysrepo.org
Subject: [sysrepo-devel] augmented if-interface aooears to no longer work

Prior to the merge from devel to master I was able to edit-config and get back data for an augmented if-interface model.

Now when I edit the same data I get back an empty result.

Did something change that makes augmenting the ietf-interface yang model not possible?
I am able to augment the ietf-system yang model with no issues.

The model is simple:
  augment "/if:interfaces/if:interface" {
    container interface-config {
      leaf owner-tag {
        type string;
      }
    }
  }

Edit-config:
Netopeer2-server[25054]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="37"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <target>
      <candidate/>
    </target>
    <config>    <if:interfaces xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge">
          <if:interface nc:operation="merge">
            <if:name>ip-4</if:name>
            <if:description>descr_ip-1</if:description>
            <if:type>ianaift:ethernetCsmacd</if:type>
            <defif:interface-config xmlns="http://www.advaoptical.com/ns/def-interfaces" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge">
             <owner-tag>my interface</owner-tag>
           </defif:interface-config>
          </if:interface>
        </if:interfaces>
    </config>
  </edit-config>
</rpc>

RPC OK Reply 37 for session 1:


----the data returned is empty
get-config
RPC Data Reply 38 for session 1:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data/>
</rpc-reply>


Netopeer2-server[25054]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="38"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <source>
      <running/>
    </source>
    <filter>      <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:ensembleif="http://www.advaoptical.com/ns/adva-ensemble-interfaces">
      </interfaces>
    </filter>
  </get-config>
</rpc>
netopeer2-server[25054]: DICT: inserting "rpc" with collision
netopeer2-server[25054]: DICT: inserting "message-id" with collision _______________________________________________
sysrepo-devel mailing list
sysrepo-devel at sysrepo.org
http://lists.sysrepo.org/listinfo/sysrepo-devel


More information about the sysrepo-devel mailing list