[Anima] question about future-proofing of GRASP objectives

Michael Richardson <mcr+ietf@sandelman.ca> Sun, 13 December 2020 00:05 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83C403A0F0A for <anima@ietfa.amsl.com>; Sat, 12 Dec 2020 16:05:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 zcWGRgMeOVdD for <anima@ietfa.amsl.com>; Sat, 12 Dec 2020 16:05:16 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE6E53A0F09 for <anima@ietf.org>; Sat, 12 Dec 2020 16:05:15 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 153B738994 for <anima@ietf.org>; Sat, 12 Dec 2020 19:07:41 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id T8B_wSIk7sHv for <anima@ietf.org>; Sat, 12 Dec 2020 19:07:40 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id F2C9A38993 for <anima@ietf.org>; Sat, 12 Dec 2020 19:07:39 -0500 (EST)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 55FDE1B9 for <anima@ietf.org>; Sat, 12 Dec 2020 19:05:12 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: anima@ietf.org
X-Attribution: mcr
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Sat, 12 Dec 2020 19:05:12 -0500
Message-ID: <31729.1607817912@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/qYyqozdoPazaHHJfGK5JXap7vxc>
Subject: [Anima] question about future-proofing of GRASP objectives
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 13 Dec 2020 00:05:18 -0000

GRASP objectives look like:

  objective = [objective-name, objective-flags, loop-count, ?objective-value]
  objective-name = text ;see section "Format of Objective Options"
  objective-flags = uint .bits objective-flag
  loop-count = 0..255

so, ['string', uint, uint, otherstuff]

There can be an array of objectives.
If any of the objectives do not match the above CDDL, what do I do?
Options are:
  1) throw away that objective and move on to the others, which maybe
     look right?
  2) throw away the entire message.

(2) is certainly easier to code.
(1) seems way more future proof.

--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide