From 4c566ede5a255848292b62a312d2aeef481a1d83 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Mon, 20 Oct 2008 13:43:34 +0000
Subject: [PATCH] Add VALUE_AUTO and VALUE_GENERATE constants

'auto' is used in multiple place in the code with a meaning similar to
'default', 'generate' will be used to force generation of mac addresses
when the default would be to reuse an old one.

Forward-port-of: r1884, Reviewed-by: iustinp

Reviewed-by: imsnah
---
 lib/constants.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/constants.py b/lib/constants.py
index 2a19b63bd..b2bd5650c 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -141,6 +141,8 @@ XEN_INITRD = _autoconf.XEN_INITRD
 KVM_PATH = _autoconf.KVM_PATH
 
 VALUE_DEFAULT = "default"
+VALUE_AUTO = "auto"
+VALUE_GENERATE = "generate"
 VALUE_NONE = "none"
 
 # hooks-related constants
-- 
GitLab