mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	vendor libnetwork which support flush API
This commit is contained in:
		
							
								
								
									
										3
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							@@ -1076,8 +1076,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/docker/libnetwork/ipvs",
 | 
			
		||||
			"Comment": "v0.8.0-dev.2-908-gd5c82231",
 | 
			
		||||
			"Rev": "d5c822319097cc01cc9bd5ffedd74c7ce7c894f2"
 | 
			
		||||
			"Rev": "ba46b928444931e6865d8618dc03622cac79aa6f"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/docker/libtrust",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								vendor/github.com/docker/libnetwork/ipvs/ipvs.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/docker/libnetwork/ipvs/ipvs.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -116,6 +116,13 @@ func (i *Handle) DelService(s *Service) error {
 | 
			
		||||
	return i.doCmd(s, nil, ipvsCmdDelService)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Flush deletes all existing services in the passed
 | 
			
		||||
// handle.
 | 
			
		||||
func (i *Handle) Flush() error {
 | 
			
		||||
	_, err := i.doCmdWithoutAttr(ipvsCmdFlush)
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NewDestination creates a new real server in the passed ipvs
 | 
			
		||||
// service which should already be existing in the passed handle.
 | 
			
		||||
func (i *Handle) NewDestination(s *Service, d *Destination) error {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								vendor/github.com/docker/libnetwork/ipvs/netlink.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/docker/libnetwork/ipvs/netlink.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -402,6 +402,13 @@ func (i *Handle) doGetServicesCmd(svc *Service) ([]*Service, error) {
 | 
			
		||||
	return res, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// doCmdWithoutAttr a simple wrapper of netlink socket execute command
 | 
			
		||||
func (i *Handle) doCmdWithoutAttr(cmd uint8) ([][]byte, error) {
 | 
			
		||||
	req := newIPVSRequest(cmd)
 | 
			
		||||
	req.Seq = atomic.AddUint32(&i.seq, 1)
 | 
			
		||||
	return execute(i.sock, req, 0)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func assembleDestination(attrs []syscall.NetlinkRouteAttr) (*Destination, error) {
 | 
			
		||||
 | 
			
		||||
	var d Destination
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user