def do_attribute (self, name):
		if not name:
			self.help_attribute()
			return
		invalid = ''.join([_ for _ in name if _ not in Attribute.chars])
		if invalid:
			print 'invalid character(s) in attribute name: %s' % invalid
			return
		cli = Attribute(name)
		cli.attribute = self._attribute.get(name,{})
		cli.cmdloop()
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/application/cli.py/Syntax.do_attribute/original