From a3e7451c100cd7cf003c157787e0646118b22b05 Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Tue, 24 Sep 2024 11:39:27 +0800 Subject: [PATCH] spec: interfaces can be included in the delegated IPAM plugin result Signed-off-by: Rui Cao --- SPEC.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index d7ba7d77..f649e718 100644 --- a/SPEC.md +++ b/SPEC.md @@ -598,7 +598,9 @@ Plugins provided a `prevResult` key as part of their request configuration must #### Delegated plugins (IPAM) Delegated plugins may omit irrelevant sections. -Delegated IPAM plugins must return an abbreviated _Success_ object. Specifically, it is missing the `interfaces` array, as well as the `interface` entry in `ips`. +Delegated IPAM plugins must return an abbreviated _Success_ object. Specifically, it is missing the `interface` entry in `ips`. + +The `interfaces` array can still be kept to indicate the host interface(`sandbox` is empty) associated with the allocated IP. For example, in cases where a node has multiple network interfaces, a specific network interface serves as the uplink for the allocated IP. The primary CNI needs to know the uplink interface to install the corresponding ergess routes. ### VERSION Success