From d8e84937c19169e3de73e7ad6b7382d954d753ac Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Thu, 1 Dec 2011 16:54:40 -0600 Subject: Adds network model and network info cache. The next merge will prepopulate the cache, and use the model to keep the cache up to date. I realize "cache" is a bit of a stretch for what this is doing. blueprint network-info-model blueprint compute-network-info Change-Id: I0f0f4ba3de1310e1ff89239dab6ea8e24c85f2c8 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index 8da1d752c..565e55387 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -317,6 +317,10 @@ class InvalidCPUInfo(Invalid): message = _("Unacceptable CPU info") + ": %(reason)s" +class InvalidIpAddressError(Invalid): + message = _("%(address)s is not a valid IP v4/6 address.") + + class InvalidVLANTag(Invalid): message = _("VLAN tag is not appropriate for the port group " "%(bridge)s. Expected VLAN tag is %(tag)s, " -- cgit