avoid configuring links for wireless networks
This commit is contained in:
		
							parent
							
								
									b7adbd289c
								
							
						
					
					
						commit
						62c0011caa
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -357,6 +357,8 @@ class Session: | ||||||
|                     ) |                     ) | ||||||
|                     interface = create_interface(node_one, net_one, interface_one) |                     interface = create_interface(node_one, net_one, interface_one) | ||||||
|                     node_one_interface = interface |                     node_one_interface = interface | ||||||
|  |                     wireless_net = isinstance(net_one, (EmaneNet, WlanNode)) | ||||||
|  |                     if not wireless_net: | ||||||
|                         link_config(net_one, interface, link_options) |                         link_config(net_one, interface, link_options) | ||||||
| 
 | 
 | ||||||
|                 # network to node |                 # network to node | ||||||
|  | @ -368,7 +370,8 @@ class Session: | ||||||
|                     ) |                     ) | ||||||
|                     interface = create_interface(node_two, net_one, interface_two) |                     interface = create_interface(node_two, net_one, interface_two) | ||||||
|                     node_two_interface = interface |                     node_two_interface = interface | ||||||
|                     if not link_options.unidirectional: |                     wireless_net = isinstance(net_one, (EmaneNet, WlanNode)) | ||||||
|  |                     if not link_options.unidirectional and not wireless_net: | ||||||
|                         link_config(net_one, interface, link_options) |                         link_config(net_one, interface, link_options) | ||||||
| 
 | 
 | ||||||
|                 # network to network |                 # network to network | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue