Skip to content

HP RestConf

Jim Burns edited this page Sep 7, 2015 · 5 revisions
  1. Connect to HP switch via console connection or SSH
  2. In console/ssh session:
    1. Enter the global configuration mode:

      configure
    2. Define the OpenFlow controller:

      openflow controller-id 1 ip IP port OFPORT controller-interface vlan 1
      1. IP and OFPORT are on the SDN Controller table on SDN Developer Lab
      2. NOTE: the controller-id number of '1' may need to be different if you already have controller's defined.
      3. NOTE: we use VLAN 1 as the not-openflow-controlled vlan. Since the communication to the OpenFlow controller cannot be on an openflow-controlled vlan this will work. You may want to choose a different vlan (that is not openflow controlled) for your OpenFlow connection.
    3. Define a new OpenFlow instance:

      openflow instance sdnlab
      1. NOTE: we use the name 'sdnlab' but you can use what you like here, but remember what you use for later commands.
    4. Define the listen port:

      listen-port OFPORT
      1. OFPORT can be found on the SDN Controller table on SDN Developer Lab
    5. Define the VLAN that will be controlled by OpenFlow:

      member vlan 5
      1. NOTE: we use vlan 5 for our openflow controlled vlan, you may use a different vlan.
    6. Define the controller to communicate with:

      controller-id 1
      1. NOTE: we use controller id 1 because that is what we defined above with the openflow controller-id... command. If you used a different controller id there, then you must use that id here.
    7. Set the OpenFlow version to use:

      version 1.0
      1. NOTE: we use OpenFlow 1.0, but you could also use 1.3.
    8. Enable the new openflow instance:

      enable
    9. Exit from defining openflow instance:

      exit
    10. Enable openflow:

      enable
    11. Exit from configuring openflow:

      exit
    12. Define the ports that will be on the OpenFlow controlled VLAN (call these PORTS):

      vlan 5 untagged 5-10
      1. NOTE: we are defining vlan 5 because this is the vlan we defined above with member vlan 5, if you used something different there then you must use the same vlan here.
      2. NOTE: we are defining ports 5 through 10 to be OpenFlow controlled, you may want a different set of ports.
      3. NOTE: endpoint (hosts) will be connected to one of these ports.
      4. NOTE: the OpenFlow control channel should not be connected to one of these ports.
    13. Define the IP addresses for the vlan:

      vlan 5 ip address 10.2.1.1/24
      1. NOTE: we are defining vlan 5 because this is the vlan we defined above with member vlan 5, if you used something different there then you must use the same vlan here.
      2. NOTE: you may use a different subnet.
    14. Define a name for the vlan:

      vlan 5 name openflow-ports
      1. NOTE: we are defining vlan 5 because this is the vlan we defined above with member vlan 5, if you used something different there then you must use the same vlan here.
      2. NOTE: we use the name 'openflow-ports', but you can use whatever you would like.
    15. Commit your changes:

      write mem
    16. Validate your changes:

      show openflow instance sdnlab
      1. NOTE: we use the instance name 'sdnlab' because this is what we defined earlier. If you used a different name, then you must use that name here.
      2. NOTE: validate the items you configured such as Configured OF Version, instance name, member list vlan, listen port, the controller id and that the connection status of the controller id is 'Connected'.
  3. You HP switch is now connected to your SDN Developer Lab's controller and you may begin using the RESTCONF API.

Clone this wiki locally