net: add NetworkAddress::isDeprecated() helper function
Change-Id: I869bfc9272744211fff00729c6783874f518a4b5
diff --git a/tests/integration/network-monitor.README.md b/tests/integration/network-monitor.README.md
index 7b339c0..0e5b5ad 100644
--- a/tests/integration/network-monitor.README.md
+++ b/tests/integration/network-monitor.README.md
@@ -1,12 +1,13 @@
-# NetworkMonitor test
+# Testing NetworkMonitor functionality
-These instructions are only for Linux and macOS.
+> These instructions are only for Linux and macOS.
Run the network-monitor integration test binary, e.g.:
-```
+
+```sh
+# sudo not required
./build/tests/integration/network-monitor
```
-Note: sudo is not required.
You should see an `onInterfaceAdded` message for each ethernet and loopback
network interface present on the system, followed by an `onAddressAdded`
@@ -16,9 +17,9 @@
## Linux
-[The following commands assume eth0 is the name of an ethernet interface
-on the machine. If your interfaces are named differently, replace eth0
-with the name of any ethernet interface that you have available.]
+The following commands assume `eth0` is the name of an ethernet interface
+on the machine. If your interfaces are named differently, replace `eth0`
+with the name of any ethernet interface that you have available.
Command | Expected output
--------|----------------
@@ -32,12 +33,14 @@
sudo ip link delete dev nmtest0 | `nmtest0: onInterfaceRemoved`
If you unplug the ethernet cable from your network card, you should see:
+
```
eth0: onStateChanged running -> no-carrier
nmtest0: onStateChanged running -> no-carrier
```
Plugging the cable back in should produce the following messages:
+
```
eth0: onStateChanged no-carrier -> running
nmtest0: onStateChanged no-carrier -> running
@@ -45,9 +48,9 @@
## macOS
-[The following commands assume en0 is the name of an ethernet interface
-on the machine. If your interfaces are named differently, replace en0
-with the name of any ethernet interface that you have available.]
+The following commands assume `en0` is the name of an ethernet interface
+on the machine. If your interfaces are named differently, replace `en0`
+with the name of any ethernet interface that you have available.
Command | Expected output
--------|----------------
@@ -60,11 +63,13 @@
sudo ifconfig vlan1 destroy | `vlan1: onInterfaceRemoved`
If you unplug the ethernet cable from your network card, you should see:
+
```
en6: onStateChanged running -> down
```
Plugging the cable back in should produce the following messages:
+
```
en6: onStateChanged down -> running
```