Change order in documentation
This commit is contained in:
parent
af9fc52336
commit
d33f798510
16
README.md
16
README.md
|
|
@ -168,6 +168,14 @@ Change the IP address in the object created by the above example:
|
||||||
con.execute("/interface/gre/set .id=gre1 remote-address=10.0.1.1");
|
con.execute("/interface/gre/set .id=gre1 remote-address=10.0.1.1");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Remove an existing object
|
||||||
|
|
||||||
|
And now remove the object:
|
||||||
|
|
||||||
|
```java
|
||||||
|
con.execute("/interface/gre/remove .id=gre1");
|
||||||
|
```
|
||||||
|
|
||||||
### Un-setting a variable on an object
|
### Un-setting a variable on an object
|
||||||
|
|
||||||
Un-setting a variable is a bit different, and you need to use a parameter called `value-name`. This isn't well documented. Let's say you have a firewall rule that was set up like this:
|
Un-setting a variable is a bit different, and you need to use a parameter called `value-name`. This isn't well documented. Let's say you have a firewall rule that was set up like this:
|
||||||
|
|
@ -181,14 +189,6 @@ Assuming the rule can be accessed as `.id=*1`, you un-set it by using `value-nam
|
||||||
con.execute("/ip/firewall/filter/unset .id=*1 value-name=time");
|
con.execute("/ip/firewall/filter/unset .id=*1 value-name=time");
|
||||||
```
|
```
|
||||||
|
|
||||||
### Remove an existing object
|
|
||||||
|
|
||||||
And now remove the object:
|
|
||||||
|
|
||||||
```java
|
|
||||||
con.execute("/interface/gre/remove .id=gre1");
|
|
||||||
```
|
|
||||||
|
|
||||||
## Asynchronous commands
|
## Asynchronous commands
|
||||||
|
|
||||||
We can run some commands asynchronously in order to continue receiving updates:
|
We can run some commands asynchronously in order to continue receiving updates:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue