mirror of
				https://github.com/luscis/openlan.git
				synced 2025-11-01 04:52:36 +08:00 
			
		
		
		
	fea: switch: support key options for gretap
This commit is contained in:
		| @@ -159,7 +159,10 @@ func (w *WorkerImpl) AddOutput(bridge string, port *LinuxPort) { | ||||
| 		if port.link == "" { | ||||
| 			port.link = co.GenName("gre") | ||||
| 		} | ||||
| 		key, _ := strconv.Atoi(values[2]) | ||||
| 		link := &netlink.Gretap{ | ||||
| 			IKey: uint32(key), | ||||
| 			OKey: uint32(key), | ||||
| 			LinkAttrs: netlink.LinkAttrs{ | ||||
| 				Name: port.link, | ||||
| 				MTU:  1460, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Ding
					Daniel Ding