'Get the latest information from the IGD.'

def update(self):

    if (self.type == 'byte_received'):
        self._state = self._upnp.totalbytereceived()
    elif (self.type == 'byte_sent'):
        self._state = self._upnp.totalbytesent()
    elif (self.type == 'packets_in'):
        self._state = self._upnp.totalpacketreceived()
    elif (self.type == 'packets_out'):
        self._state = self._upnp.totalpacketsent()
