Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Boetes (0.17 sec)

  1. cni/pkg/repair/netns.go

    func getLinkWithDestinationOf(ip string) (netlink.Link, error) {
    	routes, err := netlink.RouteListFiltered(
    		netlink.FAMILY_V4,
    		&netlink.Route{Dst: &net.IPNet{IP: net.ParseIP(ip), Mask: net.CIDRMask(32, 32)}},
    		netlink.RT_FILTER_DST)
    	if err != nil {
    		return nil, err
    	}
    
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found for %s", ip)
    	}
    
    	linkIndex := routes[0].LinkIndex
    	return netlink.LinkByIndex(linkIndex)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/listener.go

    		return ""
    	}
    	return strings.Join(vh.GetDomains(), "/")
    }
    
    func describeRoutes(vh *route.VirtualHost) string {
    	routes := make([]string, 0, len(vh.GetRoutes()))
    	for _, route := range vh.GetRoutes() {
    		routes = append(routes, describeMatch(route.GetMatch()))
    	}
    	return strings.Join(routes, ", ")
    }
    
    func describeMatch(match *route.RouteMatch) string {
    	conds := []string{}
    	if match.GetPrefix() != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  3. istioctl/pkg/util/configdump/route.go

    		}
    	}
    	if lastUpdated.After(time.Unix(0, 0)) { // if a timestamp was obtained from a drc
    		return &lastUpdated, nil
    	}
    	return nil, nil
    }
    
    // GetDynamicRouteDump retrieves a route dump with just dynamic active routes in it
    func (w *Wrapper) GetDynamicRouteDump(stripVersions bool) (*admin.RoutesConfigDump, error) {
    	routeDump, err := w.GetRouteConfigDump()
    	if err != nil {
    		return nil, err
    	}
    	drc := routeDump.GetDynamicRouteConfigs()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

            "ips": [
                {
                    "version": "4",
                    "address": "10.0.0.2/24",
                    "gateway": "10.0.0.1",
                    "interface": 0
                }
            ],
            "routes": []
    
        },
        "log_level": "debug",
        "cni_event_address": "%s",
        "ambient_enabled": %t,
        "kubernetes": {
            "k8s_api_root": "APIRoot",
            "kubeconfig": "testK8sConfig",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/route_test.go

    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile(fmt.Sprintf("testdata/routes/%s/configdump.json", tt.name))
    			if err := cw.Prime(cd); err != nil {
    				t.Errorf("failed to parse config dump: %s", err)
    			}
    			err := cw.PrintRouteSummary(RouteFilter{Verbose: true})
    			assert.NoError(t, err)
    
    			wantOutputFile := path.Join("testdata/routes", tt.name, "output.txt")
    			util.CompareContent(t, gotOut.Bytes(), wantOutputFile)
    		})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig.go

      # Retrieve route summary without using Kubernetes API
      ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
      istioctl proxy-config routes --file envoy-config.json
    `,
    		Aliases: []string{"routes", "r"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if (len(args) == 1) != (configDumpFile == "") {
    				cmd.Println(cmd.UsageString())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  7. istioctl/pkg/util/proto/messageslice.go

    package proto
    
    import (
    	"bytes"
    
    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  8. istioctl/pkg/util/configdump/util.go

    	endpoints configTypeURL = "type.googleapis.com/envoy.admin.v3.EndpointsConfigDump"
    	clusters  configTypeURL = "type.googleapis.com/envoy.admin.v3.ClustersConfigDump"
    	routes    configTypeURL = "type.googleapis.com/envoy.admin.v3.RoutesConfigDump"
    	secrets   configTypeURL = "type.googleapis.com/envoy.admin.v3.SecretsConfigDump"
    	ecds      configTypeURL = "type.googleapis.com/envoy.admin.v3.EcdsConfigDump"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Dec 24 08:16:26 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_linux.go

    func forEachLoopbackRoute(cfg *Config, f func(*netlink.Route) error) error {
    	loopbackLink, err := netlink.LinkByName("lo")
    	if err != nil {
    		return fmt.Errorf("failed to find 'lo' link: %v", err)
    	}
    
    	// Set up netlink routes for localhost
    	cidrs := []string{"0.0.0.0/0"}
    	if cfg.EnableIPv6 {
    		cidrs = append(cidrs, "0::0/0")
    	}
    	for _, fullCIDR := range cidrs {
    		_, localhostDst, err := net.ParseCIDR(fullCIDR)
    		if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/route.go

    				return nil, err
    			}
    			routes = append(routes, routeTyped)
    		}
    	}
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found")
    	}
    	sort.Slice(routes, func(i, j int) bool {
    		iName, err := strconv.Atoi(routes[i].Name)
    		if err != nil {
    			return false
    		}
    		jName, err := strconv.Atoi(routes[j].Name)
    		if err != nil {
    			return false
    		}
    		return iName < jName
    	})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
Back to top