code: def update(self, data):
          
          self.name = data["name"]
          self.description = data['description']
          self.win_index = data['win_index']
          # Other attributes are optional
          if conf.use_winpcapy:
              self._update_pcapdata()
          try:
              self.ip = socket.inet_ntoa(get_if_raw_addr(data['guid']))
          except (KeyError, AttributeError, NameError):
              pass
          try:
              self.mac = data['mac']
          except KeyError:
              pass
docs: Update info about network interface according to given dnet dictionary