Commit graph

64 commits

Author SHA1 Message Date
Husaam Mehdi
440bf67e7a
netmode: add mtu support in 'advanced' mode 2026-02-19 19:58:08 +05:30
Mohd Husaam Mehdi
c418635f83 netmode: update advanced mode supported arguments
* now interface_configs argument replaces the interface_names,
  interface_types, and ports arguments
* interfaces are named automatically using logic explained in
  ADVANCED_MODE_GUIDE
2026-02-06 20:10:06 +05:30
Markus Gothe
52a5b3d536 netmode: Fix L2 netmode when modules are not loaded.
We need to blindly trust board.json to be correct.
Since uci-defaults scripts runs before the init.d-scripts
has finished, modules and interfaces might be created
later on.
2026-01-28 15:32:25 +01:00
Mohd Husaam Mehdi
40240a7152 netmode: update handling of direct interfaces
the idea is to make them similar to route interface, to avoid
confusion

* they can be also be mgmt/inet/iptv
* they will have default proto set to dhcp
* syntax is now direct:vlan:100 or direct:transparent
2026-01-23 18:34:10 +05:30
Suvendhu Hansa
68d34bf1ec netmode: set gateway by routing instance 2026-01-16 18:21:15 +05:30
Sukru Senli
341ac893ff
netmode: add advanced mode with bridge VLAN/QinQ and multi-service support 2025-12-26 18:50:24 +05:30
Sukru Senli
a0c1801511 netmode: fallback to checking usr_data if /opconf/opconf.json is not available 2025-12-05 17:24:09 +01:00
Vivek Dutta
64f4ceda35
netmode: clean all vlans before creating new ones 2025-12-05 14:37:31 +05:30
Sukru Senli
09aa9746d5
netmode: remove wan6 for pppoe and static modes 2025-12-04 19:50:23 +05:30
Vivek Dutta
e67f2bbcf7
netmode: check mode from opconf in uci-default
(cherry picked from commit fe7a0b7d0c)

12c8a916 netmode: check mode from opconf.json in uci-default

Co-authored-by: Vivek Dutta <vivek.dutta@iopsys.eu>
2025-11-28 15:57:28 +05:30
Vivek Kumar Dutta
4d414af657
netmode: 1.1.10
(cherry picked from commit e97d29ed6b)
2025-11-25 18:42:48 +05:30
Sukru Senli
74339e6216 netmode: set MTU on WAN device section 2025-11-05 16:14:55 +01:00
Sukru Senli
8197f9ad93 netmode: expose MTU as supported argument for PPPoE 2025-11-05 16:14:52 +01:00
Vivek Kumar Dutta
924675d271
netmode: 1.1.8 2025-10-28 15:29:17 +05:30
Sukru Senli
89fb4a0857 netmode: enable by default and auto-detect mode 2025-10-22 08:43:15 +02:00
Sukru Senli
dfe2af4643 netmode: fix static mode
and improve other modes
2025-10-20 16:45:09 +02:00
Sukru Senli
15f17da6e5 netmode: add static mode and vlanid and dns servers as arguments to all modes 2025-10-20 12:52:39 +02:00
Vivek Kumar Dutta
ced2b4187f
netmode: 1.1.5 2025-06-20 12:43:21 +05:30
Sukru Senli
db626422dc
netmode: Added mode specific scripts 2025-05-28 12:17:31 +05:30
Vivek Kumar Dutta
36490a7cda
netmode: Add support for SupportedArguments 2025-05-21 16:22:27 +05:30
Vivek Kumar Dutta
22d9f90528
netmode: fix extender configuration 2025-05-19 17:43:17 +05:30
Vivek Kumar Dutta
ca49dfac97
netmode: support to define supported modes 2025-05-16 18:23:43 +05:30
Vivek Kumar Dutta
6df1768244
netmode: datamodel vendor extension 2025-05-02 18:00:07 +05:30
Suvendhu Hansa
d71d4914d5
gateway-info: 1.0.0
- Updated netmode config to mark wan interface in gwinfo
2025-02-26 09:20:08 +05:30
Vivek Kumar Dutta
5abf23d711
Revert "icwmp: fix gateway info race condition"
This reverts commit c118da628d.
2025-02-21 15:08:22 +05:30
Suvendhu Hansa
c118da628d icwmp: fix gateway info race condition 2025-02-19 06:47:15 +00:00
Rahul Thakur
72f6521710 netmode: disable firewall for l2 netmode
since the intent for l2 netmode is to accept all traffic, hence,
disable firewall on top of zone lan's input/output/forward being
ACCEPT/ACCEPT/ACCEPT

Please note: when firewall is disabled, it esentially set's input
to ACCEPT, it does not stop or disable fw3.
2024-03-13 11:53:54 +00:00
Sukru Senli
174ba8951a netmode: remove example invalid config 2024-01-30 11:23:24 +01:00
Sukru Senli
d59793c752 testnet: move it to its own package, out of netmode 2024-01-30 11:02:04 +01:00
Sukru Senli
19a224d375 netmode: move l2mode from eval profile to here 2024-01-29 13:43:16 +01:00
Sukru Senli
a1170e71a7 netmode: create netmodes folder if saving mode is needed 2022-03-17 17:41:50 +01:00
Sukru Senli
0c6c6f6cc4 netmode: do not run netmode if mode is same as last saved mode 2022-02-08 23:04:37 +01:00
Sukru Senli
e12cf6ffa2 netmode: do not rely on mode folder 2022-02-08 15:08:35 +01:00
Sukru Senli
a169a13b47 netmode: do nothing if mode is not set 2022-02-07 21:17:04 +01:00
Sukru Senli
e3eb968b05 netmode: remove default netmodes 2022-02-06 14:16:18 +01:00
Sukru Senli
f67eca787f netmode: strip netmoded out of netmode package 2022-02-06 13:33:50 +01:00
Sukru Senli
c108347db8 netmode: move internet led handling from testnet to ruleng 2021-02-22 22:44:47 +01:00
Jakob Olsson
57e2a69575 netmode: remove status method, depend on 'enabled' option 2020-04-23 12:25:18 +02:00
Sukru Senli
df93ed2d3c netmode: deprecate config based mode switching 2020-04-23 09:59:21 +02:00
Sukru Senli
332b6ce7b6 netmode: testnet: use pgrep to check if tesnet is running 2020-03-21 19:42:53 +01:00
Sukru Senli
6aa3467f29 netmode: remove bcm netmodes 2020-03-21 13:07:50 +01:00
Ronny Nilsson
34343d4824 netmode: remove variables from templates which is automatically set on first boot.
In Iopsys 5 each subsystem has to take care of its own data. If netmode modifies
the hostname, SSID etc. It by it self has to generate fully valid UCI data. If
netmode needs help with that it may use the scripts in /rom/etc/uci-defaults
2020-01-07 14:18:47 +01:00
Sukru Senli
0822323784 netmode: remove unused omcproxy config 2019-07-08 10:18:56 +02:00
Sukru Senli
5776cee5f6 netmode: disable ubusproxy in repeater mode 2019-07-08 10:18:37 +02:00
Jakob Olsson
80dafc80ea netmode: init.d: add ignore option macaddr argument 2019-06-26 10:34:14 +02:00
Sukru Senli
f3cf9cd7e1 netmode: update wireless configs 2019-06-25 11:37:35 +02:00
Sukru Senli
c3363f01ab netmode: use generic name for uci-default script 2019-06-24 19:17:07 +02:00
Sukru Senli
ef0f38499a netmode: exclude norrland from existing modes 2019-05-23 10:04:24 +02:00
Jakob Olsson
c0637c052f netmodes: replace wps_pushbutton with wps 2019-05-20 15:13:31 +02:00
Jakob Olsson
74259b0f9b netmodes: update default config values for macfilter 2019-05-07 08:59:55 +02:00