Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Export Restful API interface to support configuration of MWAN3, Firewall & NAT, IpSec.
  • Site-to-Site tunnels across edges & edges & central orchestrators and application managers

Architecture

SDEWAN CNF enhances OpenWRT Luci web interface with SDEWAN controllers to provide Restful API for network functions' configuration and control.

Image Added

CNF includes below modules:

  • MWAN3: mwan3 configuration for multiple WAN links’ management
  • Firewall: fw3 configuration for firewall rule, NAT rule.
  • IpSec: strongswan configuration to setup security tunnel between CNFs
  • DNS/DHCP: dnsmasq configuration for DNS and DHCP (ip4) or odhcpd configuration for DHCP (ip6)
  • BGP/OSPF: bird configuration for BGP/OSPF auto routing
  • Service: manage (e.g. start, stop, restart etc.) lifecycle of network function applications (e.g. mwan3, fw3, strongswan etc.)
  • Runtime States: exports system log for debugging

APIs

Common Error code:

CodeDescription
400Bad request
401unauthorized -the security token is not provides or expired.
404resource not found

...

Request: 

  • Request Parameters

    NameInTypeDescription
    interfacepathstringinterface name, e.g. "eth0"
    actionbodystringaction to be executed. valid value are "up", "down"


  • Request Example

    {
        "action": "up"
    }


Response

  • Normal response code: 200
  • Error response code: 400 (e.g. invalid action), 404 (e.g. interface not found)
  • Response Parameters

    NameInTypeDescription
    resultbodystringoperation execution result 


  • Response Example

    {
        "result": "success"
    }


GET /cgi-bin/luci/sdewan/v1/interfaces

...

  • Normal response codes: 200
  • Response Parameters

    NameInTypeDescription
    interfacesbodyarraya list of available network interfaces
    ip_addressbodyarrayip address of the interface
    ip6_addressbodyarrayipv6 address of the interface
    mac_addressbodystringmac address of the interface
    statusbodystringinterface status, valid value are "UP", "DOWN"
    received_packetsbodystringnumber of received packets
    send_packetsbodystringnumber of send packaets


  • Response Example


    {"interfaces": [

        { "ip_address: ["10.0.0.1"],

           "name":"eth0",

           "status":"UP",

           "send_packets":"19148",

          "mac_address":"22:22:22:22:22:22",

         "receive_packets":"20923" }

    ]}


GET /cgi-bin/luci/sdewan/v1/interfaces/{interface-name}

...

  • Normal response codes: 200
  • Response Parameters

    NameInTypeDescription
    interface-namepathstringinterface name
    ip_addressbodyarrayip address of the interface
    ip6_addressbodyarrayipv6 address of the interface
    mac_addressbodystringmac address of the interface
    statusbodystringinterface status, valid value are "UP", "DOWN"
    received_packetsbodystringnumber of received packets
    send_packetsbodystringnumber of send packaets


  • Response Example


        { "ip_address: ["10.0.0.1"],

           "name":"eth0",

           "status":"UP",

           "send_packets":"19148",

          "mac_address":"22:22:22:22:22:22",

         "receive_packets":"20923" }


MWAN3

OpenWRT MWAN3 configuration includes below sections:

...