Re: [netmod] 答复: CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt

Andy Bierman <andy@yumaworks.com> Fri, 13 January 2023 17:50 UTC

Return-Path: <andy@yumaworks.com>
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 558F8C1527BA for <netmod@ietfa.amsl.com>; Fri, 13 Jan 2023 09:50:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MCZFEwzHL13X for <netmod@ietfa.amsl.com>; Fri, 13 Jan 2023 09:50:24 -0800 (PST)
Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE84FC153CAB for <netmod@ietf.org>; Fri, 13 Jan 2023 09:49:03 -0800 (PST)
Received: by mail-lf1-x132.google.com with SMTP id x40so64258lfu.12 for <netmod@ietf.org>; Fri, 13 Jan 2023 09:49:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bhg6NdjraOVldW19gT/aAW4BOVvv9LHDLw5G8Iy8xvw=; b=oZOiixM+2njEvwnrVVJgEHwlCg2wZFixn3XyKaMqI7UqIUwwLKL3jzNrxLX69PYezB 7+pqlgcJHzCPg2RaTSJ/GJ5ueZJ1eUZwmJZ9QvvwrEPVstLiyUI97hD4RGahHNTz26w0 Jm/kezi47UmBDxc6GAkxOW035ALI6hZ86HOLToNJxcRSsDN7pJmga63DpwkPh2c/+kV7 jdILTBNWvcagWY9FZgtxeZ7RHaN8fJgay7DKPOxlTfRFMpGlgOOLzkgsb4bLrMWtxyUn sLhjQhUTIuv2axo0CFuNdN9pJmdN+aKk35Vpn0y8ibk+k/7mVMo/CCN2f/OggCRTKpOf LgSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bhg6NdjraOVldW19gT/aAW4BOVvv9LHDLw5G8Iy8xvw=; b=yljOBMrhg5T83ZVpX7phRLll7dgBWhi9HM+X+G+aCju936DSSN4NQIdAbbMCoUdld4 imQJQyj9GkitGwZXIPQGcHXW8bwN/+9v1CotJYQ1TQlhlBdqx8Ada0KeuGUq0RMs4AzZ YknqoVuqMdfiLi1XdTkOOvOy13pha2+ThlVgpRZ3ISc8rK6uk8YMYYNC3HonFWOBA0Dc 8FzEp4zDrg1xqwZrYXOqJAVWh7t0TjiK/m7ni/K6/pAzYnKQat0c34f6fWW3/XMV3sM5 heHIaxt0e9r4p5GHadMYkOg3Nu2CoTy7gR+xGyjVtrEinkULCoRRG27q17bP+ZiX4WQU OyRg==
X-Gm-Message-State: AFqh2krH4EHFH+xiH8IHWH4JFrm79kqiz8+D3rarpWehpKzmFCnpABRg 90dMkjAD7roTmuNqIu+CiwhiEqRQjzC+YjRUeHzsDg==
X-Google-Smtp-Source: AMrXdXsyw2VbQfD5COk5e3/WI3cN4xwru91EFcyInPjjobtmqwz14t2MWJlKMffIA7cBD4aERulyVMvDbhSMGYhm1LM=
X-Received: by 2002:a05:6512:31d0:b0:4b5:5b36:28b6 with SMTP id j16-20020a05651231d000b004b55b3628b6mr9105834lfe.4.1673632141534; Fri, 13 Jan 2023 09:49:01 -0800 (PST)
MIME-Version: 1.0
References: <167345911024.15670.5822349028239537605@ietfa.amsl.com> <18071.1673461082@localhost> <d62956f1f724460bbf12291b92d43f8b@huawei.com> <19176.1673539776@localhost> <CABCOCHRYGQVdCCdc1rNAVbxFisV4ipB1FhfkifG8T8Rj_5vdqg@mail.gmail.com> <25713.1673631080@localhost>
In-Reply-To: <25713.1673631080@localhost>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 13 Jan 2023 09:48:50 -0800
Message-ID: <CABCOCHTww7t1Z-iu81kd0QuFa3i-Tf498bp9hfEkhQuFkEmQQw@mail.gmail.com>
To: Michael Richardson <mcr@sandelman.ca>
Cc: "Fengchong (frank)" <frank.fengchong@huawei.com>, "anima@ietf.org" <anima@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, "core@ietf.org" <core@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000047f81805f228d9bd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qJXJCNelgHSF2wnZ_TDCkobpu8Q>
Subject: Re: [netmod] 答复: CORE-SID and SX:structure and draft-ietf-anima-rfc8366bis-01.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 13 Jan 2023 17:50:28 -0000

On Fri, Jan 13, 2023 at 9:31 AM Michael Richardson <mcr@sandelman.ca> wrote:

>
> Andy Bierman <andy@yumaworks.com> wrote:
>     >> Fengchong (frank) <frank.fengchong@huawei.com> wrote:
>     >> > Hi Michael,
>     >> > You can use augment-structure to extend a yang structure.
>     >>
>     >> You can't use augment-structure to extend in-place an existing yang
>     >> structure
>     >> Augment-structure produces a new structure with a new name that has
> been
>     >> extended.
>
>     > No. It just adds nodes to the specified parent, the same as a regular
>     > augment.
>
> I think that you are mixing up my terminology, which is probably my fault:
>
> from
> https://mailarchive.ietf.org/arch/msg/yang-doctors/rsstdJegAaDPIhHdgXNfCwOCwgo/
>
>


module: example-module

  structure address-book:
    +-- address* [last first]
       +-- last      string
       +-- first     string
       +-- street?   string
       +-- city?     string
       +-- state?    string



module: example-module-aug

  augment-structure /exm:address-book/exm:address:
    +-- county?    string
    +-- zipcode?   string



Result:

   exm:address-book
      exm:address
           exm:last
           exm:first
           exm:street
           exm:city
           exm:state
           exma:county
           exma:zipcode


The SID generation works as expected.
The SIDs for county and zipcode will be assigned in the example-module-aug
file.
There is only one /address-book/address structure in the 'exn' namespace.
Only the added leafs are in the 'exma' namespace.


Andy



> From: Andy Bierman <andy@yumaworks.com>
>
> > But, I think that sx:augment-structure, if done by "B", and then done in
> a
> > different document by "C" would result in duplicate data nodes if "D"
> were
> > to
> > import both.
>
> There is nothing in YANG that does what you want, which (I think) is to
> add schema nodes to the module A namespace from module B.
>