[netmod] accessible tree for rpcs?

Kent Watsen <kwatsen@juniper.net> Tue, 01 August 2017 15:37 UTC

Return-Path: <kwatsen@juniper.net>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C932C13217B for <netmod@ietfa.amsl.com>; Tue, 1 Aug 2017 08:37:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.022
X-Spam-Level:
X-Spam-Status: No, score=-2.022 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 obbVMSJUHTrD for <netmod@ietfa.amsl.com>; Tue, 1 Aug 2017 08:37:38 -0700 (PDT)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0107.outbound.protection.outlook.com [104.47.42.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C16E12EA95 for <netmod@ietf.org>; Tue, 1 Aug 2017 08:37:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rPwx/CcgViQh7Dk1qWz+6Od5S+JJgp0gX/Gipr+u2Jk=; b=dRl/VyCoJegwAAZ3unDYVruE4wIMAbwXjcPh4GVVaBoo//sHIJxTi7aV5brIWI95u9Z7Asn/3LtrZwrkxQ2lyIAvvbKEG2U9hbEU0IBEVMKE9wqePYwSQ5u+X3Y4lNLzthnOjsNTEAun+ZHe4xtgMLIlhLEsWnpL6O9f35PqaP8=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1569.namprd05.prod.outlook.com (10.161.217.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.10; Tue, 1 Aug 2017 15:37:37 +0000
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) by BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) with mapi id 15.01.1320.010; Tue, 1 Aug 2017 15:37:37 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: accessible tree for rpcs?
Thread-Index: AQHTCtwZEsEmlzSxhUeoKQkaPbrqIg==
Date: Tue, 01 Aug 2017 15:37:36 +0000
Message-ID: <CD730352-594C-4346-B4A0-4EF6F55BCB27@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-originating-ip: [66.129.241.11]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1569; 6:PgvFwS/HflpFVsFaDAYyQgU46hkrCNplMKyoAr/zl29kjiinjdPm05G/pqmT7WJz6zmn9edQQTSzmvZKUSp+u21ce9dB8+ZIiMtGgdI0HLpuJBzbZ38zyesuILLffO5cXi6/ro925DrYFv1Tmng3lkZxVHVdFLme07LmpTuOFqrMXCqYMYez72XGbf3akIixW0cTcuoUs8HoxNw/fqsACYgbk1MOrsAE2almzj+/Ex6olxFmtmS9qE3J/eN9HpZAZLe6BNzgt+kHDaNYR2pyB5Et88e3oou2J87AWzOTjQLtYBV/CZjhVEBR/A/FPiZjhniDtd60kLZq04vUxYKzGA==; 5:nWTNtAr365TZlXXfmHEq0dqQotmGBy4iK205wDRBiyj5RewNlVCShvxNYrbSpkxcTikMFKDdInJyYDweXAKLgBlr0YFKP8JHz0zm8SibWmzvWvYqLbvGudgoV9k/NOlHJouMhPfLCS4ugSLfdOMK+Q==; 24:/9M0mNEDr8gqzuqA5j+Q6+BK6HRPxtAjKOCEH/iIja9kF7zMm0hvbWKyfD2Z7fgd1inZZwKdq/0WNQm2iNeyKJObhQROrDdlaaCHeTQ7VSw=; 7:kSmTX+KqoaNfGpoCmCqze8wWtpI72ecRunq2tOEyvuuEQeWUtuithY6hEnGtENQzjE46dDE0rcE6itEGTZ8UJgw37Bu/Qs7wJdb1IKUAZWiMuxDA6aK2PgVXzOeki2Ag4l87UgHwEgpP0KFht7B+5W6y12l5VkcMshTWXBjRm5RRih5x3xQ4cdUgxFCV185p+aXNSFr157Gwgtr4j65ovc915qQjDCBIo4vacYrHjFY=
x-ms-office365-filtering-correlation-id: dcc6cb01-b852-42ea-aa23-08d4d8f33c96
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR0501MB1569;
x-ms-traffictypediagnostic: BN3PR0501MB1569:
x-exchange-antispam-report-test: UriScan:(158342451672863);
x-microsoft-antispam-prvs: <BN3PR0501MB156920CBCA2525D2EA734ADFA5B30@BN3PR0501MB1569.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0501MB1569; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0501MB1569;
x-forefront-prvs: 0386B406AA
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39400400002)(39850400002)(39450400003)(39410400002)(39840400002)(39860400002)(189002)(199003)(6506006)(38730400002)(110136004)(101416001)(5640700003)(7736002)(99286003)(6436002)(53936002)(6512007)(105586002)(6916009)(54356999)(50986999)(97736004)(106356001)(2351001)(86362001)(82746002)(189998001)(305945005)(36756003)(25786009)(2900100001)(8676002)(1730700003)(81166006)(81156014)(83506001)(8936002)(14454004)(33656002)(3846002)(3480700004)(6116002)(102836003)(68736007)(5660300001)(4001350100001)(66066001)(3280700002)(2906002)(6486002)(77096006)(478600001)(3660700001)(83716003)(2501003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1569; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <8E23AE42B0448C46B46A542CF621EB4D@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2017 15:37:36.9835 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1569
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_kOZuFxgagbGMhmZu-_jbZrWU0Q>
Subject: [netmod] accessible tree for rpcs?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Aug 2017 15:37:40 -0000


RFC 7950, S6.4.1. (XPath Context) says:

   o  If the XPath expression is defined in a substatement to an "input"
      statement in an "rpc" or "action" statement, the accessible tree
      is the RPC or action operation instance, all state data in the
      server, and the running configuration datastore.  The root node
      has top-level data nodes in all modules as children.
      Additionally, for an RPC, the root node also has the node
      representing the RPC operation being defined as a child.  The node
      representing the operation being defined has the operation's input
      parameters as children.

   o  If the XPath expression is defined in a substatement to an
      "output" statement in an "rpc" or "action" statement, the
      accessible tree is the RPC or action operation instance, all state
      data in the server, and the running configuration datastore.  The
      root node has top-level data nodes in all modules as children.
      Additionally, for an RPC, the root node also has the node
      representing the RPC operation being defined as a child.  The node
      representing the operation being defined has the operation's
      output parameters as children.


Does it make sense for input/output to access "all state data in the
server, and the running configuration datastore"?  How would this be
used?


Kent  // contributor