From 061af2734fe987daabeb5e22eb3a468cfa05e067 Mon Sep 17 00:00:00 2001 From: Andrea Spadaccini <spadaccio@google.com> Date: Wed, 2 Nov 2011 15:55:32 +0000 Subject: [PATCH] Add object representing the master network params Signed-off-by: Andrea Spadaccini <spadaccio@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- lib/objects.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/objects.py b/lib/objects.py index 1b7eece36..24679685b 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -315,6 +315,25 @@ class TaggableObject(ConfigObject): return obj +class MasterNetworkParameters(ConfigObject): + """Network configuration parameters for the master + + @ivar name: master name + @ivar ip: master IP + @ivar netmask: master netmask + @ivar netdev: master network device + @ivar ip_family: master IP family + + """ + __slots__ = [ + "name", + "ip", + "netmask", + "netdev", + "ip_family" + ] + + class ConfigData(ConfigObject): """Top-level config object.""" __slots__ = [ -- GitLab