def element(self):
        element = ("<entry name=\"" + self.name + "\">"
                   "<nexthop>"
                   "<ip-address>" + self.nexthop + "</ip-address>"
                   "</nexthop>"
                   )
        if self.interface is not None:
            element += "<interface>%s</interface>" % self.interface
        element += "<metric>10</metric>" \
                   "<destination>%s</destination></entry>" % self.destination
        return element
dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/pandevice/pandevice/network.py/StaticRoute.element/original