To
add a network route,
use the following sis-console commands, Ant tasks, or related MBean operations.
Console commands
addnetworkroute
Command |
addnetworkroute <ra-entity> <interface-type> <rule> <interface-name> [position]
Add a new network route to the SIS. The interface-type must be IN or SIP. Rules
are of the format "<type> [<value>]". For SIP, the rule type may be "ip",
"domain", "regex", "all", or "none". If the rule type is "ip", "domain", or
"regex", a value must be specified for the rule. For IN, the rule type may be
"protocol", "orig-address", or "dest-address", and a value must always be
specified. IN also allows multiple rules to be specified, delimited using the
ampersand '&'.
|
||
|---|---|---|---|
Example |
To add a network route of type $ ./sis-console addnetworkroute sis IN "dest-address type=c7,ri=gt,digits=3460100" external-scp Network route added |
adddefaultnetworkroute
Command |
adddefaultnetworkroute <ra-entity> <interface-type> <interface-name>
Add a default route to the SIS
|
||
|---|---|---|---|
Example |
To add a default network route of type $ ./sis-console adddefaultnetworkroute SIP default Default route added |
Ant tasks
addnetworkroute
Task |
<addnetworkroute type="..." rule="..." interface="..." position="..."/> |
|---|---|
Example |
To add a network route of type <sis-management>
<addnetworkroute type=IN" rule="dest-address type=c7,ri=gt,digits=3460100" interface="external-scp"/>
</sis-management>
|
adddefaultnetworkroute
Task |
<adddefaultnetworkroute type="..." interface="..."/> |
|---|---|
Example |
To add a default network route of type <sis-management>
<adddefaultnetworkroute type=SIP" interface="default"/>
</sis-management>
|
MBean operations
MBean |
|---|
addRoute
Operation |
To add a network route: public ObjectName addRoute(NetworkInterfaceType type, String rule, String interfaceName, int position)
throws NullPointerException, InvalidArgumentException,
UnrecognizedComponentException, AlreadyDeployedException,
InvalidStateException, ManagementException;
|
|---|
addDefaultRoute
Operation |
To add a default network route: public ObjectName addDefaultRoute(NetworkInterfaceType type, String interfaceName)
throws NullPointerException, UnrecognizedComponentException,
AlreadyDeployedException, InvalidStateException,
ManagementException;
|
|---|
