wiki:Old/WiMAX/17/14addClient
close Warning: Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.

Version 17 (modified by Nilanjan Paul, 12 years ago) ( diff )

Datapath Control Services

WiMAX RF Aggregate Manager

    datapath/config/list - Displays list of ACL (Access control list) profiles

    <service name="datapath/config/list">
       <info>This service list all datapath client configurations from database.</info>
    </service>
    

    datapath/config/load - Loads an ACL profile from database

    <service name="datapath/config/load">
       <info>This service loads datapath client configuration from database.</info>
       <args>
          <arg name="name" isRequired="true">
             <info>Name of client's status.</info>
          </arg>
       </args>
    </service>
    

    datapath/config/save - Saves current ACL as a profile in database

    <service name="datapath/config/save">
       <info>This service saves current datapath client configuration database.</info>
       <args>
          <arg name="vlan" isRequired="true">
             <info>Vlan number.</info>
          </arg>
          <arg name="name" isRequired="true">
             <info>Name of status.</info>
          </arg>
       </args>
    </service>
    

    datapath/config/delete - Removes ACL profile from database

    <service name="datapath/config/delete">
       <info>This service deletes saved datapath client configuration from database.</info>
       <args>
          <arg name="name" isRequired="true">
             <info>Name of configuration.</info>
          </arg>
       </args>
    </service>
    

    datapath/config/show - Displays content of an ACL profile

    <service name="datapath/config/show">
       <info>Show named datapath client configuration from database.</info>
       <args>
          <arg name="name" isRequired="true">
             <info>Name of saved status.</info>
          </arg>
       </args>
    </service>
    

    datapath/clients/add - Adds client MAC address to ACL

    Add client with given MAC address to the list of authorized clients and specify the slice to which it belongs. Optionally provide IP address. Depending on the policy setting in the configuration, unauthorized clients will be refused access.

    <service name='datapath/clients/add'>
      <info>Add client with specified MAC address to BS access list</info>
      <args>
        <arg name='ipaddress' isRequired='false' value='[ipaddress]'><info>IP address for the client</info></arg>
        <arg name='macaddr' isRequired='true' value='macaddr'><info>MAC address of the client</info></arg>
        <arg name='vlanid' isRequired='true' value='vlanid'><info>VLAN ID (slice) that the client belongs to</info></arg>
      </args>
    </service>
    

    Example usage:

    http://cons-mw-01:5052/wimaxrf/datapath/clients/add?macaddr=00:1d:e1:37:11:04&vlanid=1&ipaddress=10.41.18.2
    

    datapath/clients/delete - Delete client MAC address from current ACL

    <service name="datapath/clients/delete">
       <info>Delete client from datapath</info>
       <args>
          <arg name="macaddr" isRequired="true">
             <info>Mac address.</info>
          </arg>
       </args>
    </service>
    

    Example usage:

    http://cons-wm-01:5052/wimaxrf/clients/delete?macaddr=00:1d:e1:36:ff:0a
    

    datapath/clients/modify - Modifies client's VLAN or IP address

    <service name="datapath/clients/modify">
       <info>Modify client's vlan and/or IP address...</info>
       <args>
          <arg name="macaddr" isRequired="true">
             <info>Mac address.</info>
          </arg>
          <arg name="vlanid" isRequired="false">
             <info>Vlan number.</info>
          </arg>
          <arg name="ipaddress" isRequired="false">
             <info>IP address.</info>
          </arg>
       </args>
    </service>
    

    datapath/clients/status - Displays current ACL configuration on BS

    <service name="datapath/clients/status">
       <info>Current datapaths client configuration</info>
       <args>
          <arg name="vlanid" isRequired="false">
             <info>Vlan number.</info>
          </arg>
       </args>
    </service>
    

    Example usage:

    http://cons-wm-01:5052/wimaxrf/clients/status
    

    datapath/list - Displays current datapath according to Interface, VLAN id and type

    <service name="datapath/list">
       <info>List all datapaths...</info>
    </service>
    

    datapath/status - Displays datapath status by VLAN id

    <service name="datapath/status">
       <info>Datapath status...</info>
       <args>
          <arg name="vlan" isRequired="true">
             <info>Vlan number.</info>
          </arg>
       </args>
    </service>
    

    datapath/add - Adds datapath according to Interface, VLAN id and type

    <service name=datapath/add>
      <info>
      Add datapath.....</info>
      <args>
        <arg name=type isRequired=true>
          <info>
          Type of datapath, can be: simple, click, mf and openflow </info>
        </arg>
        <arg name=vlan isRequired=true>
          <info>
          Vlan number.</info>
        </arg>
        <arg name=interface isRequired=false>
          <info>
          Name of the ethernet card that hosts the VLAN</info>
        </arg>
      </args>
    </service>
    

    datapath/delete - Deletes datapath according VLAN id

    <service name="datapath/delete">
       <info>Delete datapath.....</info>
       <args>
          <arg name="vlan" isRequired="true">
             <info>Vlan number.</info>
          </arg>
       </args>
    </service>
    

    datapath/clean - Removes all datapaths

    <service name="datapath/clean">
       <info>Clean all Datapaths </info>
    </service>
    

    RF Matrix Control Services

    1. set - to set attenuation on given ports pair (example portA=1 , portB=2 attenuation = 20)
    $ wget -O status http://localhost:5052/instr/set?portA=1\&portB=2\&att=20
    

    2.get - to get attenuation on given pair of ports

    $ wget -O status http://localhost:5052/instr/get?portA=1\&portB=8
    

    3.status - to get attenuation on all port pairs

    $ wget -O status http://localhost:5052/instr/status 
    
    Note: See TracWiki for help on using the wiki.