Changes between Version 8 and Version 9 of Network driver development HOWTO

Show
Ignore:
Timestamp:
05/19/10 00:26:04 (9 years ago)
Author:
ibaldin (IP: 98.26.55.18)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Network driver development HOWTO

    v8 v9  
    2121These packages are spread over multiple directories under $ORCA_SRC/handlers/network/src/main/java and $ORCA_SRC/handlers/network/src/main/resources. The resources/ subtree contains XML and TXT scripts used by different device drivers that encode the commands that need to be sent. 
    2222 
    23 =  
     23The attached figure shows the UML diagram of the classes and interfaces that implement router drivers (not DTN or OS). 
     24 
     25= Implementing a new router driver = 
     26 
     27A basic router driver must either implement the basic IRouterDevice interface (if the device supports basic VLAN operations) or the IMappingRouterDevice (if the device supports VLAN tag remapping): 
     28 
     29IRouterDriver: 
     30{{{ 
     31public interface IRouterDevice extends INetworkDevice { 
     32         
     33        // create VLAN with QoS 
     34    public void createVLAN(String vlanTag, String qos) throws CommandException; 
     35 
     36    // delete VLAN 
     37    public void deleteVLAN(String vlanTag) throws CommandException; 
     38     
     39    // add trunk ports to a VLAN 
     40    public void addTrunkPortsToVLAN(String vlanTag, String ports) throws CommandException; 
     41     
     42    // add access ports to a VLAN 
     43    public void addAccessPortsToVLAN(String vlanTag, String ports) throws CommandException; 
     44 
     45    // remove trunk ports from a VLAN 
     46    public void removeTrunkPortsFromVLAN(String vlanTag, String ports) throws CommandException; 
     47     
     48    // remove access ports from a VLAN 
     49    public void removeAccessPortsFromVLAN(String vlanTag, String ports) throws CommandException; 
     50        
     51} 
     52}}} 
     53 
     54IMappingDriver: 
     55{{{ 
     56public interface IMappingRouterDevice extends IRouterDevice { 
     57         
     58    public void mapVLANs(String sourceTag, String destinationTag, String port) throws CommandException; 
     59 
     60    public void unmapVLANs(String sourceTag, String destinationTag, String port) throws CommandException;  
     61 
     62} 
     63}}}