Changes between Version 14 and Version 15 of Network driver development HOWTO

Show
Ignore:
Timestamp:
05/21/10 10:44:12 (9 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Network driver development HOWTO

    v14 v15  
    6464}}} 
    6565 
    66 The parameters are passed in as strings and their interpretation is left to the driver implementation. Developers are strongly encouraged to implement unit tests under handlers/network/src/test/java in the package orca.handlers.network. See existing tests for inspiration. Test procedures are described in this document below.  
     66The parameters are passed in as strings and their interpretation is left to the driver implementation. For example, the port ranges are passed in to the Cisco devices in IOS CLI syntax as e.g. 
     67{{{ 
     68gigabitethernet 1/25-27, gigabitethernet 1/12-14 
     69}}} 
     70On the other hand, Juniper device takes port ranges as 
     71{{{ 
     72ge-0/0/[1-5], xe-0/0/1 
     73}}} 
     74 
     75Developers are strongly encouraged to implement unit tests under handlers/network/src/test/java in the package orca.handlers.network. See existing tests for inspiration. Test procedures are described in this document below.  
    6776 
    6877Once the interface is implemented, the next step is to implement a set of tasks (a class per task) corresponding to driver actions. A common way to implement them is to define a device-specific base task that is a child of !NetworkBaseTask and subclass further tasks from it (see the orca.handlers.network.tasks.Cisco6509 as an example).