diff --git a/README.md b/README.md
index c1b66331bb94028673b518992ae91709752b526e..be7fb5121d8525b2f6e5493310691a837d8ad07c 100644
--- a/README.md
+++ b/README.md
@@ -9,18 +9,11 @@ Re**Foris** is not production-ready yet. It's on tested stage and we believe it
Installation of re**Foris** is possible only on Turris devices due to specific software and hardware usage. It's
possible that some environment (Docker container) with Turris routers hardware emulation will be created in the future.
-### 1. Install dependencies
-**On a router!**
-```bash
-$ opkg update
-$ opkg install make git-http
-```
-
-### 2. Transfer and synchronize reForis source code to the router
+### 1. Transfer and synchronize reForis source code to the router
Use your favorite tools to keep the code synchronized with your local machine. You can automatize all these processes
and code transferring with you favorite tools (e.g., `rsync` or built-in IDE solution).
-#### 2.1 SSHFS and SFTP
+#### 1.1 SSHFS and SFTP
One of the possible solutions is using SSHFS or SFTP. It's very comfortable to use it with some IDE, it may allow you to
watch the changes and synchronize only changed parts.
##### PyCharm
@@ -32,7 +25,7 @@ It's also possible to setup remote server and synchronization with VS Code and
##### `rsync`
You can also use any other IDE or text editor and synchronize code with SSHFS or SFTP using rsync.
-#### 2.2 Ignore unnecessary paths
+#### 1.2 Ignore unnecessary paths
It's better to not synchronize subsequent directories with a router:
* `js`
* `venv`
@@ -43,19 +36,19 @@ So just exclude it.
eMMC can only sustain 3–10K rewrite cycles before it starts to cause bit errors. In this regard, it’s better to send the
code to the RAM (`/tmp` or `/var` directories are mapped to the RAM).
-### 3. Check Python version
+### 2. Check Python version
Minimal required Python version is **3.6**.
Please check if you have the same Python versions in Makefile (variable `$ROUTER_PYTHON`) and on the system installed.
If not then correct the version in Makefile.
-### 4. Install reForis application with production server (lighttpd)
+### 3. Install reForis application with production server (lighttpd)
**On the router!**
```bash
$ make install-with-lighttpd
```
-### 5. Build JS
+### 4. Build JS
**You have build JS sources on some other machine with `node-npm` installed!**
```bash
@@ -66,14 +59,14 @@ Then don't forget to transfer it to the `/tmp/reforis/reforis_static/reforis/js/
#### Note
If you've made some changes in JS part of code then it has to be rebuilt and sent to the router.
-### 6. Compile translations
+### 5. Compile translations
**On the local computer!**
```bash
$ make compile-messages
```
Then transfer it to the router.
-### 7. Restart the lighttpd server
+### 6. Restart the lighttpd server
**On the router!**
```bash
/etc/init.d/lighttpd restart
diff --git a/js/src/interfaces/Network.js b/js/src/interfaces/Network.js
index d69c21a928710d31289ec2e073ac7c32d4288009..a4911ed4e43be0761f607bd88cc2f32028f044a6 100644
--- a/js/src/interfaces/Network.js
+++ b/js/src/interfaces/Network.js
@@ -17,20 +17,101 @@ Network.propTypes = {
};
export default function Network({ interfaces, selected, setSelected }) {
+ let componentContent;
+ if (interfaces.length > 0) {
+ if (getModulesNumber(interfaces) > 1) {
+ componentContent = (
+
+ );
+ } else {
+ componentContent = (
+
+ );
+ }
+ } else {
+ componentContent =
@@ -279,42 +279,55 @@ devices connected to the guest network.
- Type
+ State
- eth
+
+
+
- State
+ Module ID
- down
+ 0
- Bus
+ Slot
- eth
+ LAN1
- Slot
+ Interface ID
- LAN1
+ lan1
- Module ID
+ Type
- 0
+ eth
+
+
+
+
+ Bus
+
+
+ eth
@@ -322,7 +335,7 @@ devices connected to the guest network.
Link speed
- 0
+ N/A
@@ -585,9 +598,9 @@ devices connected to the guest network.
-
- LAN1
-
+
+ Interface %s %s
+
@@ -623,42 +636,55 @@ devices connected to the guest network.
- Type
+ State
- eth
+
+
+
- State
+ Module ID
- down
+ 0
- Bus
+ Slot
- eth
+ LAN1
- Slot
+ Interface ID
- LAN1
+ lan1
- Module ID
+ Type
- 0
+ eth
+
+
+
+
+ Bus
+
+
+ eth
@@ -666,7 +692,7 @@ devices connected to the guest network.
Link speed
- 0
+ N/A
@@ -938,6 +964,677 @@ devices connected to the guest network.
>
+ Save
+
+
+
+
+
+`;
+
+exports[` with various modules Snapshot select interface. 1`] = `
+
+
+ Network Interfaces
+
+
+
+Here you can configure the settings of the network interfaces on your device. You can switch the physical
+network interfaces among networks. If you are unsure what to set here use the default settings.
+
+
+
+ WAN
+
+
+
+It acts as an external network connection. Firewall rules should be applied here. It can only contain a
+single interface.
+
+
+
+ LAN
+
+
+
+It acts as a local network connection. LAN should contain devices which are under your control and you
+trust them. These devices can see each other and can access this web interface. It is recommended that the
+LAN should contain at least one interface otherwise you might not be able to configure this device in an
+easy way.
+
+
+
+ Guest Network
+
+
+
+It acts as a local network connection. Unlike LAN the devices in the guest network can't access
+the configuration interface of this device and are only able to access WAN (internet). This network should
+be used for devices which you don't fully trust. Note that you can also limit download/upload speed of the
+devices connected to the guest network.
+
+
+
+
+
+
+`;
+
+exports[` with various modules Snapshot. 1`] = `
+
+
+ Network Interfaces
+
+
+
+Here you can configure the settings of the network interfaces on your device. You can switch the physical
+network interfaces among networks. If you are unsure what to set here use the default settings.
+
+
+
+ WAN
+
+
+
+It acts as an external network connection. Firewall rules should be applied here. It can only contain a
+single interface.
+
+
+
+ LAN
+
+
+
+It acts as a local network connection. LAN should contain devices which are under your control and you
+trust them. These devices can see each other and can access this web interface. It is recommended that the
+LAN should contain at least one interface otherwise you might not be able to configure this device in an
+easy way.
+
+
+
+ Guest Network
+
+
+
+It acts as a local network connection. Unlike LAN the devices in the guest network can't access
+the configuration interface of this device and are only able to access WAN (internet). This network should
+be used for devices which you don't fully trust. Note that you can also limit download/upload speed of the
+devices connected to the guest network.
+
+