mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add Initial EPS support for ModemManager interface
This commit is contained in:
		
							parent
							
								
									2313389e87
								
							
						
					
					
						commit
						7cdfa10a74
					
				
					 1 changed files with 43 additions and 1 deletions
				
			
		|  | @ -169,6 +169,48 @@ return network.registerProtocol('modemmanager', { | |||
| 		o.value('INFO', _('Info')); | ||||
| 		o.value('DEBUG', _('Debug')); | ||||
| 		o.default = 'ERR'; | ||||
| 		 | ||||
| 
 | ||||
| 
 | ||||
| 		o = s.taboption('general', form.ListValue, 'init_epsbearer', _('Initial EPS Bearer'), | ||||
| 		_('none: Do not set an initial EPS bearer (default behaviour)') + '<br/>' + | ||||
| 		_('default: Use the configuration options above (APN, IP Type, ...).') + '<br/>' + | ||||
| 		_('custom: Use different options when establishing a connection (these options are prefixed with %s).').format('<code>init_</code>')); | ||||
| 		o.value('', _('none')); | ||||
| 		o.value('default', 'default'); | ||||
| 		o.value('custom', 'custom'); | ||||
| 		o.default = ''; | ||||
| 		o = s.taboption('general', form.Value, 'init_apn', _('Initial EPS Bearer APN')); | ||||
| 		o.depends('init_epsbearer', 'custom'); | ||||
| 		o.default = ''; | ||||
| 		o = s.taboption('general', form.ListValue, 'init_allowedauth', _('Initial EPS Bearer Authentication Type')); | ||||
| 		o.depends('init_epsbearer', 'custom'); | ||||
| 		o.value('pap', 'PAP'); | ||||
| 		o.value('chap', 'CHAP'); | ||||
| 		o.value('mschap', 'MSCHAP'); | ||||
| 		o.value('mschapv2', 'MSCHAPv2'); | ||||
| 		o.value('eap', 'EAP'); | ||||
| 		o.value('', _('None')); | ||||
| 		o.default = ''; | ||||
| 		o = s.taboption('general', form.Value, 'init_username', _('Initial EPS Bearer Username')); | ||||
| 		o.depends('init_allowedauth', 'pap'); | ||||
| 		o.depends('init_allowedauth', 'chap'); | ||||
| 		o.depends('init_allowedauth', 'mschap'); | ||||
| 		o.depends('init_allowedauth', 'mschapv2'); | ||||
| 		o.depends('init_allowedauth', 'eap'); | ||||
| 		o.default = ''; | ||||
| 		o = s.taboption('general', form.Value, 'init_password', _('Initial EPS Bearer Password')); | ||||
| 		o.depends('init_allowedauth', 'pap'); | ||||
| 		o.depends('init_allowedauth', 'chap'); | ||||
| 		o.depends('init_allowedauth', 'mschap'); | ||||
| 		o.depends('init_allowedauth', 'mschapv2'); | ||||
| 		o.depends('init_allowedauth', 'eap'); | ||||
| 		o.default = ''; | ||||
| 		o.password = true; | ||||
| 		o = s.taboption('general', form.ListValue, 'init_iptype', _('Initial EPS Bearer IP Type')); | ||||
| 		o.depends('init_epsbearer', 'custom'); | ||||
| 		o.value('ipv4v6', _('IPv4/IPv6 (both - defaults to IPv4)')) | ||||
| 		o.value('ipv4', _('IPv4 only')); | ||||
| 		o.value('ipv6', _('IPv6 only')); | ||||
| 		o.default = 'ipv4v6'; | ||||
| 	} | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue