diff options
-rw-r--r-- | nova/network/model.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nova/network/model.py b/nova/network/model.py index dcee68f8c..f0a5d9d89 100644 --- a/nova/network/model.py +++ b/nova/network/model.py @@ -25,6 +25,17 @@ def ensure_string_keys(d): # http://bugs.python.org/issue4978 return dict([(str(k), v) for k, v in d.iteritems()]) +# Constants for the 'vif_type' field in VIF class +VIF_TYPE_OVS = 'ovs' +VIF_TYPE_BRIDGE = 'bridge' +VIF_TYPE_802_QBG = '802.1qbg' +VIF_TYPE_802_QBH = '802.1qbh' +VIF_TYPE_OTHER = 'other' + +# Constant for max length of 'bridge' in Network class +# Chosen to match max Linux NIC name length +BRIDGE_NAME_LEN = 14 + class Model(dict): """Defines some necessary structures for most of the network models.""" |