def create(self, clazzname, *args):
""" This method should be used to construct netns objects """
def create(self, clazzname, *args):
""" This method should be used to construct netns objects """
if clazzname not in ['open'] and not hasattr(netns, clazzname):
msg = "Type %s not supported" % (clazzname)
if clazzname not in ['open'] and not hasattr(netns, clazzname):
msg = "Type %s not supported" % (clazzname)