Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UnbindAddress (0.29 sec)

  1. pkg/proxy/ipvs/netlink.go

    	// EnsureAddressBind checks if address is bound to the interface and, if not, binds it.  If the address is already bound, return true.
    	EnsureAddressBind(address, devName string) (exist bool, err error)
    	// UnbindAddress unbind address from the interface
    	UnbindAddress(address, devName string) error
    	// EnsureDummyDevice checks if dummy device is exist and, if not, create one.  If the dummy device is already exist, return true.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 27 19:02:20 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/testing/fake.go

    			return true, nil
    		}
    	}
    	h.localAddresses[devName] = append(h.localAddresses[devName], address)
    	return false, nil
    }
    
    // UnbindAddress is a mock implementation
    func (h *FakeNetlinkHandle) UnbindAddress(address, devName string) error {
    	if len(devName) == 0 {
    		return fmt.Errorf("device name can't be empty")
    	}
    	if _, ok := h.localAddresses[devName]; !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/netlink_linux.go

    			return true, nil
    		}
    		return false, fmt.Errorf("error bind address: %s to interface: %s, err: %v", address, devName, err)
    	}
    	return false, nil
    }
    
    // UnbindAddress makes sure IP address is unbound from the network interface.
    func (h *netlinkHandle) UnbindAddress(address, devName string) error {
    	dev, err := h.LinkByName(devName)
    	if err != nil {
    		return fmt.Errorf("error get interface: %s, err: %v", devName, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 30 16:18:49 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/proxier.go

    		for adr := range superfluousAddresses {
    			if err := proxier.netlinkHandle.UnbindAddress(adr, defaultDummyDevice); err != nil {
    				proxier.logger.Error(err, "UnbindAddress", "interface", defaultDummyDevice, "address", adr)
    			}
    		}
    	}
    
    	// currentIPVSServices represent IPVS services listed from the system
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  5. cmd/kube-proxy/app/server_test.go

    		// released with strict decoding. These tests will fail with the
    		// lenient codec and only one config API version.
    		/*
    			{
    				name:    "Duplicate fields",
    				config:  fmt.Sprintf("%s\nbindAddress: 1.2.3.4", yamlTemplate),
    				checkFn: kuberuntime.IsStrictDecodingError,
    			},
    			{
    				name:    "Unknown field",
    				config:  fmt.Sprintf("%s\nfoo: bar", yamlTemplate),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top