Expr modify, Modify an expression, Expr commands – Technicolor - Thomson ST585 V6 User Manual
Page 355
E-DOC-CTC-20061027-0004 v1.0
Expr Commands
331
expr modify
Modify an expression.
SYN TAX:
where:
expr modify
name =
type = <{intf | ip | serv}>
index =
addr [!]=
[intf [!]=
[intfgroup [!]= <{wan|local|lan|tunnel|dmz|guest} or
number>]
[bridgeport [!]=
[tos [!]=
[precedence [!]=
[dscp [!]=
[proto =
[srcport [!]=
[srcportend =
[dstport [!]=
[dstportend =
[icmptype [!]=
[icmpcode [!]=
[icmpcodeend =
i
If a value is preceded by a “!”, it means NOT.
For example “intfgroup=!wan” means “if the interface group is different from WAN”.
name
The name of the expression to be modified.
REQUIRED
type
The expression type.
Choose between:
>
intf
>
ip
>
serv.
REQUIRED
number
The index of the subexpression to be modified.
Tip
Use the command
:expr list to obtain the indexes
of the subexpressions.
REQUIRED
addr
The IP address (or range). Supports ip/mask notation.
Note
Only for expression type
ip
.
REQUIRED
intf
The IP interface name.
Note
Only for expression type
intf
.
OPTIONAL