Re: [Ibnemo] 答复: How to group/reuse definitions

"Bert Wijnen (IETF)" <bwietf@bwijnen.net> Wed, 18 November 2015 09:07 UTC

Return-Path: <bwietf@bwijnen.net>
X-Original-To: ibnemo@ietfa.amsl.com
Delivered-To: ibnemo@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2F44A1B2A80 for <ibnemo@ietfa.amsl.com>; Wed, 18 Nov 2015 01:07:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.199
X-Spam-Level:
X-Spam-Status: No, score=0.199 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, J_CHICKENPOX_31=0.6, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no
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 P861VIlgzjoP for <ibnemo@ietfa.amsl.com>; Wed, 18 Nov 2015 01:07:25 -0800 (PST)
Received: from lb3-smtp-cloud2.xs4all.net (lb3-smtp-cloud2.xs4all.net [194.109.24.29]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A22E81B2A86 for <ibnemo@ietf.org>; Wed, 18 Nov 2015 01:07:24 -0800 (PST)
Received: from 192-168-0-74.rdsnet.ro ([86.126.92.130]) by smtp-cloud2.xs4all.net with ESMTP id ix7H1r00T2olTiE01x7LH0; Wed, 18 Nov 2015 10:07:22 +0100
To: "zhangyali (D)" <zhangyali369@huawei.com>, PEDRO ANDRES ARANDA GUTIERREZ <pedroa.aranda@telefonica.com>, Zhoutianran <zhoutianran@huawei.com>, "ibnemo@ietf.org" <ibnemo@ietf.org>
References: <563B2449.6040802@bwijnen.net> <BBA82579FD347748BEADC4C445EA0F2183167D60@nkgeml512-mbx.china.huawei.com> <B0C01F5A-9B41-4EA9-A922-949AA7980502@telefonica.com> <A747A0713F56294D8FBE33E5C6B8F58135E5F145@szxeml513-mbx.china.huawei.com>
From: "Bert Wijnen (IETF)" <bwietf@bwijnen.net>
Message-ID: <564C3FC4.80500@bwijnen.net>
Date: Wed, 18 Nov 2015 11:07:16 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <A747A0713F56294D8FBE33E5C6B8F58135E5F145@szxeml513-mbx.china.huawei.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/ibnemo/E3TsB4_RTaILtFFXH0B-kn811Wc>
Subject: Re: [Ibnemo] 答复: How to group/reuse definitions
X-BeenThere: ibnemo@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discussion of Nemo, an intent-based North Bound \(NB\) interface consisting of an application protocol running over HTTP \(RESTful interfaces\) to exchange intent-based primitives between applications and meta-controllers controlling virtual network resources \(networks, storage, CPU\)." <ibnemo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ibnemo>, <mailto:ibnemo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ibnemo/>
List-Help: <mailto:ibnemo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ibnemo>, <mailto:ibnemo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Nov 2015 09:07:26 -0000

On 13/11/15 09:48, zhangyali (D) wrote:
> NodeModel DMZ(x,y,z,I,j):
> 	Node n1 Type fw Property x;
> 	Node n2 Type nat Property y;
> 	Node n3 Type host Property z;
> 	Connection c1 Type p2p Endnodes n1,n2 Property I;
> 	Connection c2 Type p2p Endnodes n2,n3 Property j;
>
> With this expression, we create a new node type named DMZ, and its properties can be adjusted according to users' requirement. It can be called whenever you want to create a DMZ node, just like a function in C. For example:
>
> CREATE Node dmz1 Type DMZ(property(dmz1-n1), property(dmz1-n2), property(dmz1-n3), property(dmz1-c1), property(dmz1-c2));
> CREATE Node dmz2 Type DMZ(property(dmz2-n1), property(dmz2-n2), property(dmz2-n3), property(dmz2-c1), property(dmz2-c2));
> ...
Mmmm... do I have to read this literally?
"property(dmz1-c1)" means what? Just that you want to use Connection c1 as defined
in the NodeModel??

When I read the Nodemodel, I was expecting you would specify I for the property
of connection c1. Am I misunderstanding here?

Bert