[Netconf] Clarification on Netconf behavior

"Xavier Pruno, Pratibha (Nokia - IN/Bangalore)" <pratibha.xavier_pruno@nokia.com> Wed, 21 November 2018 18:36 UTC

Return-Path: <pratibha.xavier_pruno@nokia.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CA451294D0 for <netconf@ietfa.amsl.com>; Wed, 21 Nov 2018 10:36:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.36
X-Spam-Level:
X-Spam-Status: No, score=-3.36 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uqUtjYE1Wxeh for <netconf@ietfa.amsl.com>; Wed, 21 Nov 2018 10:36:24 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on072f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::72f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9C46612426A for <netconf@ietf.org>; Wed, 21 Nov 2018 10:36:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=scoQYrxY/Z3V9bpFE79H9a7JCUSSMzcDmyGMsnxxFPQ=; b=B86dixtmt2zcZ7RhZtHS2hOG04fEQM3sBEeGAnWKYNw34V3vBSGUdwXvoAIUWS8rEl3UXEgXyMJ99o56uW2HMb7h2/f2a+up0fSeVA4aWTVbKa/kDJgQqKLwSGCLCxKnsmXc5ihWdEnk7o+mHUFlIt2Ig2/VeTnNdgBZJgjGR8Y=
Received: from VI1PR07MB4429.eurprd07.prod.outlook.com (20.176.7.142) by VI1PR07MB4959.eurprd07.prod.outlook.com (20.178.8.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.14; Wed, 21 Nov 2018 18:36:19 +0000
Received: from VI1PR07MB4429.eurprd07.prod.outlook.com ([fe80::b4c1:4e4:e256:d858]) by VI1PR07MB4429.eurprd07.prod.outlook.com ([fe80::b4c1:4e4:e256:d858%2]) with mapi id 15.20.1361.015; Wed, 21 Nov 2018 18:36:19 +0000
From: "Xavier Pruno, Pratibha (Nokia - IN/Bangalore)" <pratibha.xavier_pruno@nokia.com>
To: Netconf <netconf@ietf.org>
Thread-Topic: Clarification on Netconf behavior
Thread-Index: AQHUgckYYdZMToXDIEKEW1PbeIK3tg==
Date: Wed, 21 Nov 2018 18:36:19 +0000
Message-ID: <585C70E3-915D-42C7-AFEF-A3C924E89AC4@nokia.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.13.0.181109
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pratibha.xavier_pruno@nokia.com;
x-originating-ip: [135.245.121.7]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR07MB4959; 6:QJLFI4wfklwpPD9imr4tC0IQU+ZXyW0NvRFNYWZEZm0wlnpvzIEuMpmxQWKJqe++i9OqfhhSdl0lEiwKPBQ+lpOkh8fDCQ/uML7Iq1BsTWYgX4j1u5C1N2v/glYcn9OyOqtgtlTlwYmhbQdve4KkM1vbReaZtCsymAk3+raTFdgz+5CG9wEwpfIoGVApdt06k9wE39vrblR3i3Gcn1gdVwtvQ8YztUIaPVCFqNnyGfAjs0/09Ka13rcFbx2oEl7c3RR/CLafuUSJm9jyOE3GBq0vc00zVhHn+nFTPkwfGevUA+zpRcz8xBULtm0uN3IvrnlpJG6l05HBOxLeaX6mwiDdeWfipmz1y4xcId85/H456l81qlAR4mk9oAz+THQ4nhgItLrohzw7V5gNwfqFWEns4mMkjHm/bfUqo9lXyOOnaGDKeA+1IuzExOnjdSVU9jIZHBSiSxN2pzOs66ynOA==; 5:Aw+fTZSUDbyvQ6SHo+ro5HHmPL5V3BtkPo+H3PF5+eH5zOWmWSm7T3EWa+fnS2ka1KPtEhCEel+xgRvOoPqc3K4Am5DT1VrevQO4zAwnIc30N+MoAGePNxa1DezoOz6fcBLCS8aoj69+c2jhJZAF7ycT8OAkKjPTuijgMEoUE2s=; 7:pOHKgx6eh70Ig9Qt4ZUEeH4a4wCVzA2bXpv8AAxzd4c+eBaO2P1jaEupvk25xAOf7PRiW+x+jm+yYGPmEeV+ktqGSzI86+R8e3utvFnnVinpwZ1apw1m+rtPLLnOdRtyowaIH1jILXD//7C3ouy6Lg==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 2e469ffa-3363-43e6-9a36-08d64fe03a97
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR07MB4959;
x-ms-traffictypediagnostic: VI1PR07MB4959:
x-microsoft-antispam-prvs: <VI1PR07MB495987B3CA77439E716EB922D4DA0@VI1PR07MB4959.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231442)(11241501184)(806099)(944501410)(4982022)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:VI1PR07MB4959; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB4959;
x-forefront-prvs: 08635C03D4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(39860400002)(376002)(396003)(136003)(346002)(199004)(189003)(102836004)(3846002)(6116002)(2900100001)(36756003)(6506007)(186003)(83716004)(71200400001)(71190400001)(26005)(7736002)(81156014)(81166006)(8936002)(9326002)(99286004)(2906002)(5660300001)(14444005)(66066001)(82746002)(105586002)(106356001)(256004)(5024004)(486006)(68736007)(86362001)(6436002)(33656002)(8676002)(6486002)(478600001)(6916009)(25786009)(53936002)(6512007)(54896002)(6306002)(97736004)(316002)(3480700005)(53376002)(58126008)(53946003)(2616005)(14454004)(476003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB4959; H:VI1PR07MB4429.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: KS5kUsBFx7Ghw1SSy8RD+2PbhA6Kk9skAW0s5miJD2UyNAYOonwaYvdGff5doF2Uz0HtKIN0xyBsWTsRHq0wLYPzmpDSNag+azSJiieV1OeH8lPGG41iVTLQRNdNKlSsAlkRH5w86HTPiQg2Tz8uLxerpWIj24MgoV6pAvz1nb0aOL/ngKrJwwrJs+/aRn0t12patcVjEi4LsOM16In1sF6mrmQqm+AGJ12XdvPfFN3iQtOLD8HuyEDLpR9UuihQalH6p65OHq3vme/C2nnEGNkQ8l4Lpq5AjWKQU/30fvSO8mDY2eJZbTsVoHAZjn2XAIedaCpSzLVV0EOSRb+3oqYPzpmvqGxAaPI57SHGlBw=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_585C70E3915D42C7AFEFA3C924E89AC4nokiacom_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 2e469ffa-3363-43e6-9a36-08d64fe03a97
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 18:36:19.3161 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB4959
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/XIej7H6-WoscNT4Oqg576TPeQ40>
Subject: [Netconf] Clarification on Netconf behavior
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Nov 2018 18:36:28 -0000

Hi Experts,

  I have a cisco node (Cisco XRv) and when I do the following sub-tree, it gives me an output as below (it correct and expected). When I do a subtree filter with content match and if the content match node is the only element , what is the expected behavior? I am getting an empty data. Is this correct or are we expected to get the content-match tag in the response.


REQUEST:
=======
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config>
    <source>
      <running/>
    </source>
    <filter>
      <l2vpn xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg">
        <database>
          <xconnect-groups>
            <xconnect-group/>
          </xconnect-groups>
        </database>
      </l2vpn>
    </filter>
  </get-config>
</rpc>

RESPONSE:
=========
<nc:rpc-reply message-id="urn:uuid:d32553aa-4474-46a2-b759-ded48c8d9064" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <nc:data>
    <l2vpn xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg">
      <database>
        <xconnect-groups>
          <xconnect-group>
            <name>test_subtree</name>
          </xconnect-group>
          <xconnect-group>
            <name>sdsdsd</name>
          </xconnect-group>
          <xconnect-group>
            <name>mdc_abc</name>
          </xconnect-group>
          <xconnect-group>
            <name>mdc_test</name>
          </xconnect-group>
          <xconnect-group>
            <name>DemoEline</name>
            <p2p-xconnects>
              <p2p-xconnect>
                <name>DemoEline</name>
                <p2p-description>DEMOFORELINE</p2p-description>
              </p2p-xconnect>
            </p2p-xconnects>
          </xconnect-group>
          <xconnect-group>
            <name>Uday_test</name>
          </xconnect-group>
          <xconnect-group>
            <name>Eline_GRPC</name>
            <p2p-xconnects>
              <p2p-xconnect>
                <name>Eline_GRPC</name>
                <attachment-circuits>
                  <attachment-circuit>
                    <name>GigabitEthernet0/0/0/1.777</name>
                    <enable/>
                  </attachment-circuit>
                </attachment-circuits>
                <pseudowires>
                  <pseudowire>
                    <neighbor>
                      <neighbor>38.120.234.239</neighbor>
                      <class>tunnel-te777</class>
                    </neighbor>
                    <pseudowire-id>999</pseudowire-id>
                  </pseudowire>
                </pseudowires>
              </p2p-xconnect>
            </p2p-xconnects>
          </xconnect-group>
          <xconnect-group>
            <name>Xconnect_today</name>
          </xconnect-group>
          <xconnect-group>
            <name>DemoElineSwitching111</name>
            <p2p-xconnects>
              <p2p-xconnect>
                <name>DemoElineSwitching111</name>
                <attachment-circuits>
                  <attachment-circuit>
                    <name>GigabitEthernet0/0/0/1.40090051</name>
                    <enable/>
                  </attachment-circuit>
                </attachment-circuits>
                <pseudowires>
                  <pseudowire>
                    <neighbor>
                      <neighbor>38.120.234.236</neighbor>
                      <class>Tunnel519</class>
                    </neighbor>
                    <pseudowire-id>4009</pseudowire-id>
                  </pseudowire>
                </pseudowires>
              </p2p-xconnect>
            </p2p-xconnects>
          </xconnect-group>
          <xconnect-group>
            <name>DemoElineSwitching519</name>
            <p2p-xconnects>
              <p2p-xconnect>
                <name>DemoElineSwitching519</name>
                <attachment-circuits>
                  <attachment-circuit>
                    <name>GigabitEthernet0/0/0/1.4006</name>
                    <enable/>
                  </attachment-circuit>
                </attachment-circuits>
                <pseudowires>
                  <pseudowire>
                    <neighbor>
                      <neighbor>38.120.234.236</neighbor>
                      <class>Tunnel519</class>
                    </neighbor>
                    <pseudowire-id>4006</pseudowire-id>
                  </pseudowire>
                </pseudowires>
              </p2p-xconnect>
            </p2p-xconnects>
          </xconnect-group>
        </xconnect-groups>
      </database>
    </l2vpn>
  </nc:data>
</nc:rpc-reply>

Subtree filtering (with content match)
=============================
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config>
    <source>
      <running/>
    </source>
    <filter>
      <l2vpn xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg">
        <database>
          <xconnect-groups>
            <xconnect-group>
             <name> test_subtree </name>
            </xconnect-group>
               </xconnect-groups>
        </database>
      </l2vpn>
    </filter>
  </get-config>
</rpc>

Response:
========

<nc:rpc-reply message-id="urn:uuid:bfbf91f3-728e-4766-acff-66ad1e43ec98" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <nc:data/>
</nc:rpc-reply>

Is this correct as per RFC ??

Pratibha