code: func (ncc *SeesawNCC) BGPWithdrawAll(unused int, reply *int) error {
  	bgp, err := quaggaBGP(seesawASN)
  	if err != nil {
  		return err
  	}
  
  	defer bgp.Close()
  	bgpCfg, err := bgp.Configuration()
  	if err != nil {
  		return err
  	}
  
  	// Find the network statements within the router bgp section.
  	bgpStr := fmt.Sprintf("router bgp %d", seesawASN)
  	found := false
  	for _, line := range bgpCfg {
  		if line == bgpStr {
  			found = true
  			continue
  		}
  		if !found || line == "!" {
  			continue
  		}
  		if !strings.HasPrefix(line, " ") {
  			break
  		}
  		if strings.HasPrefix(line, " network ") {
  			n := strings.Replace(line, " network ", "", 1)
  			vip, ipNet, err := net.ParseCIDR(n)
  			if err != nil {
  				return err
  			}
  			err = bgp.Withdraw(&net.IPNet{IP: vip, Mask: ipNet.Mask})
  			if err != nil {
  				return err
  			}
  		}
  	}
  
  	return nil
  }
docs: // BGPWithdrawAll removes all network advertisements from the Quagga BGP daemon.