Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)

"Rob Wilton (rwilton)" <rwilton@cisco.com> Fri, 13 January 2023 16:18 UTC

Return-Path: <rwilton@cisco.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 86051C151546 for <netmod@ietfa.amsl.com>; Fri, 13 Jan 2023 08:18:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.598
X-Spam-Level:
X-Spam-Status: No, score=-14.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b="msXplmVU"; dkim=pass (1024-bit key) header.d=cisco.com header.b="C1GP6xHe"
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 8R6whckNAjY0 for <netmod@ietfa.amsl.com>; Fri, 13 Jan 2023 08:18:48 -0800 (PST)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16B0EC14CE4C for <netmod@ietf.org>; Fri, 13 Jan 2023 08:18:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8962; q=dns/txt; s=iport; t=1673626728; x=1674836328; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ivxFtr5vWVSDXcpO/3Ydsfx7qPNBbzL3Q/5+5Z75vlI=; b=msXplmVU1exWUhetIFB6aYNAoPGqer6+yT9Zow3N/+M7xmmlXxcznFD5 6b4z4OgqzYfrckhBsLxgEgjirQp3+K973+9npdcltsmrQYFadaF6f1F0B djAG0HH5VPnhK6I+nZtzkKEUf/w8Hf0Iq/+iS5VvnXAtN1e8NULZlFyEY s=;
X-IPAS-Result: A0ABAADQgsFjmIENJK1XAxkBAQEBAQEBAQEBAQEBAQEBAQESAQEBAQEBAQEBAQEBQIE7BAEBAQEBCwGBWlKBBQJZOkWEToNMA4RQX4ghA4ETmn2BLIElA1YPAQEBDQEBLgsLBAEBhEFFAhaEfwIlNAkOAQIEAQEBAQMCAwEBAQEBAQMBAQUBAQECAQcEFAEBAQEBAQEBHhkFDhAnhWgNhlYBAQEBAwEBEBERDAEBLAsBCwICAgEIEAEEAQEBAgIfBAMCAgIZDAsUAQgIAQEEAQ0FCBqCXAGDIgMBD6AYAYE/AoofeoEygQGCCAEBBgQEnx4DBgWBDywBiQyDTIRIJxyBSUSBFUN5gTcHMD6CYgEBAoE2EBoFEAoZDYMQOYIujS6NFwqBPXyBJw6BSG8cNwNEHUADCzsyCkA1CwtKEBsaGweBCiooFQMEBAMCBhMDIAINKDEUBCkTDScmawkCAyFhBQMDBCgtCR8EHAcVESQ8B1Y3AQQDAg8fNwYDCQMCH1BwMCQFAwsVKkcECDYFBhw2EgIIDxIPBiZEDkI3NhMGXAEpCw4TA1CBTwQvRIEZCgIEKSicH4E9gUlTGQc7Hh8tSAYGJBEaklCDT6xdCoNvoQIWg3mkU16XSSCCLKUXAgQCBAUCDgEBBoFiOoFbcBU7gmdSGQ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==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.97,214,1669075200"; d="scan'208";a="36381107"
Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 13 Jan 2023 16:18:47 +0000
Received: from mail.cisco.com (xfe-rcd-003.cisco.com [173.37.227.251]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 30DGIkst002849 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Fri, 13 Jan 2023 16:18:47 GMT
Received: from xfe-rcd-003.cisco.com (173.37.227.251) by xfe-rcd-003.cisco.com (173.37.227.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9; Fri, 13 Jan 2023 10:18:46 -0600
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (72.163.14.9) by xfe-rcd-003.cisco.com (173.37.227.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9 via Frontend Transport; Fri, 13 Jan 2023 10:18:46 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I018/RXuTZdVV57VTNdkrr/uAQL4S3uVNtMlMvJ7/TPCXGalOjgEDAwzdWYcrLqi+h06cBHHZbYqEh6Oee7LX411kQyzLVtXp2FCZemNKXfgi3KCGIuKhwsprEjOG6PhLdtRTPCuK2SW1gXAIHXjWnDjGUKrkbL4P8AfWQ/NfKcR4SAof6kB18ccJ4FYaFz6+HgiFUDWh4ovLdpt3Lr9Ce31hgMl2BTXq4dJRwlSWtFcWY6YChioyvVLrPmq5gyy8h3bpc+hhrDSDkCHS+ajwA341LnQms4wk6sIQtcreSOUpi6Xd2tw7Jn2LSFjcT21BSRV/wvz/vlGEKjwEKKcJQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ivxFtr5vWVSDXcpO/3Ydsfx7qPNBbzL3Q/5+5Z75vlI=; b=Wn6Ln7dIxpwz2V0UXCCRaWUjWkzf2yMunkyMY6JzRXmF//+B3KYZ+K3GJVhBCwFY/hy523kPXJ1/8tjj0/sxWWVFh9aQFgrM+90GqnvYmO2TTeTggw97zcQsLRQp2MWSU80X1/OzZ5wl91h5+0eIjlydECyFb+SC27Azhdv/AB6uN3RTRUUFx7clq3Si8kwlqKt1Cr/wKgf2j8NuwKTkPDFSWl+ywapNcC3mbj41xMtTRkjvLNckDc/6Fr89DUcLuiBPP9vOVKFnSWvQpck9ClH2yQWeqI1qejXTx9GL6odm8NhPV6NBAod/EpcQC6pUdIIQdkA31BokzvCsqNEoEw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ivxFtr5vWVSDXcpO/3Ydsfx7qPNBbzL3Q/5+5Z75vlI=; b=C1GP6xHe6vig/8q3jyRzTBRnqO2hO1+tqSZRmtHLs3usIlHC2kFTVS05TkQuBoX6DvMtlbJE0eXrpWXP4EEnRhTqr/EmnFHIzQ+NzMBwvP/0nty4eXhDJOfBmSm1XsQkGlWm12U650jK0PcgfdrpbUxZvj7FoVhCgX05whMg3PM=
Received: from BY5PR11MB4196.namprd11.prod.outlook.com (2603:10b6:a03:1ce::13) by SN7PR11MB7638.namprd11.prod.outlook.com (2603:10b6:806:34b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Fri, 13 Jan 2023 16:18:44 +0000
Received: from BY5PR11MB4196.namprd11.prod.outlook.com ([fe80::39ca:2d87:558d:9c17]) by BY5PR11MB4196.namprd11.prod.outlook.com ([fe80::39ca:2d87:558d:9c17%4]) with mapi id 15.20.6002.013; Fri, 13 Jan 2023 16:18:44 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)
Thread-Index: AdkmgIopkIErVeSEQRGUQfAUi9iURwAHGv2AADMcfwA=
Date: Fri, 13 Jan 2023 16:18:44 +0000
Message-ID: <BY5PR11MB4196474E5153B229D51909A6B5C29@BY5PR11MB4196.namprd11.prod.outlook.com>
References: <cb2ab59f5e0f4142b7d7f2c23d8accba@huawei.com> <20230112154557.p2oiqjeke77jl7y7@anna>
In-Reply-To: <20230112154557.p2oiqjeke77jl7y7@anna>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cisco.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: BY5PR11MB4196:EE_|SN7PR11MB7638:EE_
x-ms-office365-filtering-correlation-id: 47aa4e32-19c7-4e35-1145-08daf581d7b0
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Huh7Qde5J2ml1pOaDcXmKG7nIdTDIHq1V0qCX/E/b62QLUS9zFN12SCaOcU1ksfonWTrJ1CirKJU1D2Rfeqc1NFySvwxzDxn/VN8lQL5UmLtpl+Mq9nUVjSyrQAY6/bjLVWRyQy4Ps6Gyj1FZpJdQru6hb7WPoS9um8AXXaNLFkzkL5JgoXY5Di5KtgReOftLN8QscbkFN8iiv4be/OWE+qCOPs9J8fuPhvZtBMKmuYBenDURRLd9jAQnPJBnFXnWTNR0PiKaKLmiEyU5LIL98ALU+awX0UllU25SW8duhTVqqlOL2or/YWn1dhuQneZFEGe5SLr4OF5Nd4GzAh+KNZsZEuVyB0Og4B8G5BSJPa0I7WZIqxD+eh3pHhO8TNletMcnRR3jAEZujfAZN/9Srkw6z8A5o2xOze3Aw0IQstOiENnd/iLFbwDvkXHupzqYtvu8PfbAQQpQTntirI14XeTEp4W+4uon9SXj9LMPIG/w3YWQcvqyCMJkQ/QFQ10fpE45LxGKAKGt6meQWIsrUQ3Gc+A2AsgHzjZeJn7XkKSJJSbHlaTPBVkZ3xcrAL0FY5Q/7I5fkAUM6Ki3l7wMconIY+YlzzjHrmBPZTuIz1heDtRpu8T2mAPc04sHJJbZ2d4EwDTqj8yfvgtxRIhx26KvKdQy4vivZGzQ3rB4f82r2BdclzHoHRzq/knMWVWTItgeWQfjJWt3bsVNp3cdDJtR8fMxWbN+WgBJQKNsGw=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4196.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(366004)(39860400002)(136003)(346002)(376002)(451199015)(55016003)(53546011)(71200400001)(2906002)(6506007)(966005)(9686003)(7696005)(478600001)(186003)(76116006)(110136005)(66946007)(316002)(66476007)(64756008)(8676002)(52536014)(66446008)(66574015)(66556008)(41300700001)(33656002)(4326008)(83380400001)(38100700002)(5660300002)(122000001)(8936002)(40140700001)(86362001)(38070700005); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: OXl8LNQbMM+++UQRZWEoVjIoiFXmyXPbJhcOYhOIlPsUDWCbHKaNW91/2kDI5qxZ+4dwv1r76CotWzxpJm93j58c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ijEhErsnZZe7uQpvynEK5/gBu8Gj4SAvmFZI1l+abchqsZh35Gt9qHw5XdWg43KzpNej+mQPbbCYNX4h+Dz6SikdkX3QM2UDMm6Je5m0X/cgyM7HB1JDuM0jzmifku7O+712xiMLibWN0zaaD1y/KpXAkXkc9KmXY3rAGc1B1uVvj3jWGo31DmoClkx21ti00XjaAOY8zvG0jiDG/8KUEGRMreLroJX47tkRcsHHMQVkkav8RNeCtkQiH3loyDTaPIPG64a3iWGBLlatsM5YzRhBKd0GBaFlBH0y8WdFZlRzJ2yEPckbpGIWVXC4bOIorSoHdO0tFv7VIS5FtsUoxGlH3nu7U/0lxdCGeh16MV875g1x6fBfIdpf3O87I4USFFPmceS5ROHK40gMteY5Zl5oC48EVycYDztxdriZRwmOzPzJAr3n0mCO9gWudVDFckYDuztTk26QDkx23dOYl9QmFjzaYYfu4fRxTMZlozRH4RQo1xNQL+JTpCSmRCo
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4196.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 47aa4e32-19c7-4e35-1145-08daf581d7b0
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2023 16:18:44.4260 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: IbbajLkhEw8AS3qYDpElYoXVyjSJqQ4zI37RMHy3QbEmLshLA9qv3agets/rbW9+jaj1QDa/veeCpVEJILAg3A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7638
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.227.251, xfe-rcd-003.cisco.com
X-Outbound-Node: alln-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/UHinotL8ZHn4bWaUK5Yvj5t0AR0>
Subject: Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope of a grouping which uses a grouping)
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 16:18:52 -0000


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Jürgen Schönwälder
> Sent: 12 January 2023 15:46
> To: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] Use of unrestricted string in YANG (was RE: naming scope
> of a grouping which uses a grouping)
> 
> My take is that arbitrary limites are worse than no limits.
> Robust implementations will reject values that go beyond certain
> implementation and platform specific limits.
> 
> If anything makes sense to standardize, then it is the minimum lengths
> that must be supported, for which we do not really have formal syntax.
[Rob Wilton (rwilton)] 

+1.

It is quite likely that implementations will choose some reasonable limit for most of these unlimited strings, so it isn't really that they are unlimited, but the limit is set by the implementation rather than at the generic API.  Of course, even with YANG, an implementation could deviate all of these unlimited length string leaves to indicate what the actual limit is. Whether this would be genuinely helpful or end up just being noise by hiding "real deviations" in a sea of noise is unclear to me.

And I agree with Juergen, that from an interop perspective, knowing the minimum length that all implementations are expected to support may do more to improve interoperability.  E.g., knowing that all server implementations are expected to support interface descriptions of 256 bytes may be more helpful than knowing that some implementations limit them to 1 Mb.

Rob

// No hats.


> 
> /js
> 
> On Thu, Jan 12, 2023 at 12:38:13PM +0000, Italo Busi wrote:
> > I have seen the comment from Tom about the unrestricted string in YANG on
> other drafts in WG LC or WG adoption poll and I would like to understand what
> is the position of the Netmod WG on this issue
> >
> >
> > Using unrestricted string is quite common practice in existing IETF standard
> YANG models, also as in key attributes (e.g., see RFC8343). However, the
> comments looks valid and it is worthwhile investigating it further
> > From the previous discussion I have understood that Martin does not think
> this is an issue while Andy agrees with Tom …
> >
> > I have a mixed feeling about the resolution but I think this is something to be
> documented either in RFC7950 (update) or in RFC8407 (update)
> >
> > For integers, RFC7950 defines different built-in types for 8-bit, 16-bit and 64-
> bit integers, while for string there is only one type and the length sub-
> statement is optional
> >
> > While it is true that unrestricted strings can cause an implementation to run
> out of memory, it is also true that in some cases it is not trivial to define the
> maximum length for a string attribute
> >
> > Moreover, I am not sure whether restricting the strings would solve the out of
> memory: what happens if a huge YANG list is configured?
> >
> > What is your view/opinion about using the string type in IETF standard YANG
> models?
> >
> > Thanks, Italo
> >
> > From: Andy Bierman <andy@yumaworks.com>
> > Sent: mercoledì 21 dicembre 2022 00:30
> > To: Martin Björklund <mbj+ietf@4668.se>
> > Cc: ietfc@btconnect.com; netmod@ietf.org
> > Subject: Re: [netmod] naming scope of a grouping which uses a grouping
> >
> >
> >
> > On Mon, Dec 19, 2022 at 5:15 AM Martin Björklund
> <mbj+ietf@4668.se<mailto:mbj%2Bietf@4668.se>> wrote:
> > tom petch <ietfc@btconnect.com<mailto:ietfc@btconnect.com>> wrote:
> > > From: Martin Björklund <mbj+ietf@4668.se<mailto:mbj%2Bietf@4668.se>>
> > > Sent: 19 December 2022 12:18
> > > To: tom petch
> > >
> > > tom petch <ietfc@btconnect.com<mailto:ietfc@btconnect.com>> wrote:
> > > > draft-ietf-opsawg-sap-12
> > > > defines a grouping sap-list which uses grouping sap-entry.  The groupings
> are intended for import by service specific modules.  The uses does not include
> a prefix; should it?
> > >
> > > From a YANG perspective this is correct.  Since it references a
> > > grouping in the local module, the prefix is optional.
> > >
> > > <tp>
> > > But it will not be the local module when it is used in other modules which is
> the only reason it is a grou[ing
> >
> > It doesn't matter how sap-list is used; it is well-defined in the
> > module ietf-sap-ntw.  See section 5.4 in RFC 7950.
> >
> >
> > /martin
> >
> >
> > >
> > > module ietf-sap-vpn
> > >  prefix sap-vpn
> > > import ietf-sap-ntw
> > >  prefix sap
> > > container sap-l2vpn
> > >
> > > list l2vpn-service
> > >  uses sap:sap-list
> > > .....
> > >
> > > Does it need to know where to find sap-entry which sap-list 'uses' without a
> prefix?
> > >
> > > Tom Petch
> > >
> > > > The module also has my favourite YANG construct, an unrestricted string
> as a YANG key.
> > >
> > > I don't think that this is a problem.  Or rather, if the theory is
> > > that we need to have restricted length on strings b/c otherwise an
> > > implementation may run out memory, then I don't think this solves that
> > > problem.  But perhaps there is some other reason?
> > >
> >
> > There is an argument to be made that it is better to pick a reasonable length
> > and a reasonable character set for an administrative string (going back to
> SnmpAdminString)
> > That way, every implementation MUST support the same set of strings
> (modulo resource errors).
> >
> > I have the same reaction as Tom when I see 'string' as a key.
> > Really? The server accepts zero-length identifiers, all-whitespace identifiers,
> and much worse...
> > Probably not.
> >
> >
> > >
> > > /martin
> >
> >
> > Andy
> >
> > >
> > > >
> > > > Copying Martin as he performed a YANG Doctor review earlier in 2022.
> > > >
> > > > Tom Petch
> >
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org<mailto:netmod@ietf.org>
> > https://www.ietf.org/mailman/listinfo/netmod
> 
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> 
> 
> --
> Jürgen Schönwälder              Constructor University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod