def json(self): return { "origin": self.origin_value, "origin_string": BGPTranslation.origin(self.origin_value), "type": self.type, "type_string": BGPTranslation.path_attribute(self.type), "error": self.error, }
def __str__(self): return BGPTranslation.origin(self.origin_value)