com.foxsmart.csu.example
Class UpdateStaticRouteNR

java.lang.Object
  extended by com.foxsmart.csu.example.NoRouterExample
      extended by com.foxsmart.csu.example.UpdateStaticRouteNR

public class UpdateStaticRouteNR
extends NoRouterExample

The UpdateStaticRouteNR program add/updates/deletes a static route (i.e. the ip route command). If more than one route is associated with the destination prefix and mask, then no action will be taken.

The "NR" example does not interface with an actual router but rather shows what commands would be issued to a router during an update if one were present.


Field Summary
static java.lang.String DELETE
           
static java.lang.String DEST_MASK
           
static java.lang.String DEST_PREFIX
           
static java.lang.String DISTANCE
           
protected static org.apache.commons.logging.Log log
           
static java.lang.String NEXT_HOP_ADDRESS
           
static java.lang.String NEXT_HOP_INTERFACE
           
static java.lang.String PERMANENT
           
 
Constructor Summary
UpdateStaticRouteNR()
           
 
Method Summary
static void main(java.lang.String[] args)
          Invoke the application.
 
Methods inherited from class com.foxsmart.csu.example.NoRouterExample
readRouterConfig, writeRouterConfig, writeRouterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

DEST_PREFIX

public static final java.lang.String DEST_PREFIX
See Also:
Constant Field Values

DEST_MASK

public static final java.lang.String DEST_MASK
See Also:
Constant Field Values

NEXT_HOP_INTERFACE

public static final java.lang.String NEXT_HOP_INTERFACE
See Also:
Constant Field Values

NEXT_HOP_ADDRESS

public static final java.lang.String NEXT_HOP_ADDRESS
See Also:
Constant Field Values

DISTANCE

public static final java.lang.String DISTANCE
See Also:
Constant Field Values

PERMANENT

public static final java.lang.String PERMANENT
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
See Also:
Constant Field Values
Constructor Detail

UpdateStaticRouteNR

public UpdateStaticRouteNR()
Method Detail

main

public static void main(java.lang.String[] args)
Invoke the application.

Parameters:
args - the arguments.


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.