code: def ifacestartswith(cidr):
      '''
      Retrieve the interface name from a specific CIDR
  
      .. versionadded:: 2016.11.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' network.ifacestartswith 10.0
      '''
      net_list = interfaces()
      intfnames = []
      pattern = six.text_type(cidr)
      size = len(pattern)
      for ifname, ifval in six.iteritems(net_list):
          if 'inet' in ifval:
              for inet in ifval['inet']:
                  if inet['address'][0:size] == pattern:
                      if 'label' in inet:
                          intfnames.append(inet['label'])
                      else:
                          intfnames.append(ifname)
      return intfnamef ifacestartswith(cidr):
      '''
      Retrieve the interface name from a specific CIDR
  
      .. versionadded:: 2016.11.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' network.ifacestartswith 10.0
      '''
      net_list = interfaces()
      intfnames = []
      pattern = six.text_type(cidr)
      size = len(pattern)
      for ifname, ifval in six.iteritems(net_list):
          if 'inet' in ifval:
              for inet in ifval['inet']:
                  if inet['address'][0:size] == pattern:
                      if 'label' in inet:
                          intfnames.append(inet['label'])
                      else:
                          intfnames.append(ifname)
      return intfnames
docs: Retrieve the interface name from a specific CIDR
  
      .. versionadded:: 2016.11.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' network.ifacestartswith 10.0