OPBNOS R2.7
Release
  • Open Packet Broker
  • What's New?
  • Getting Started
    • Licensing
    • Limitations
    • Image Management
      • Installing OPBNOS from ONIE
      • Installing OPBNOS from USB Drive
      • Removing available images
      • Rebooting the Switch
    • Supported Platforms
    • Scalability
    • Downloads
  • CLI Configuration Guide
    • Configuring License
    • Configuring Hostname
    • Configuring Username
    • On-Box FlowVision
    • Configuring AAA
      • Configuring AAA
      • Configuring TACACS
      • Configuring RADIUS
    • Configure Packet Timestamping
    • Interface Management
      • Configuring Management Interface
      • Configuring Physical Interface
    • Link Layer Discovery Protocol (LLDP)
      • Enabling LLDP
      • Displaying LLDP Neighbors
    • Configuring Interface Description
    • Configuring Auto Negotiation
    • Configuring FEC
    • Configuring Maximum Transition Unit
    • Configuring Port Speed
    • Configuring Interface Type
    • Configuring VLAN Modes
    • Configuring Loopback Mode
    • Configuring Packet Slicing
    • Configuring Ingress VLAN
    • Configuring Egress Tagging
    • Configuring Rx-only
    • Configuring Tx-only
    • Configuring An-clause
    • Configuring PortChannel
    • Configuring LAG Hash
    • Configuring Flows and Rules
      • Configuring Network Ports
      • Configuring Tool Ports
      • Configuring Flows
      • Configuring Flow Description
      • Configuring Flow Rules (NVIDIA)
      • Configuring Flow Rules (Broadcom)
      • Configuring Flow Match Expression Rules
      • Configuring Flow UDF Rules
      • Configuring Push/Pop VLAN
      • Configuring Flow Override Action(s)
      • Display Flow Information
      • Clear Flow Counters
    • Configuring GTP Flow
    • Configuring IPv6 Reachability Check
    • Configuring VXLAN Flow
    • Configuring VXLAN Stripping
    • Configuring SNMP
      • Configure SNMP community
      • Configuring SNMP Trap
      • Configuring SNMP Threshold
      • Configuring SNMP User
      • Configuring SNMP Location
      • Configuring SNMP Contact
    • Configuring SYSLOG
    • Ping
    • Traceroute
    • Configuring NTP
    • Configuring Timezone
    • Configuring sFlow
    • Display Interface Information
      • Front Panel Port Mapping
    • Display System Information
      • Interface Transceiver Information
      • System Uptime
      • Reboot Cause
      • Show Environment
      • Show System Memory
      • Show Docker Memory
      • Show Services
      • Show Platform Fan
      • Show platform pcieinfo
      • Show Platform PSU
      • Show Platform SSD
      • Show Platform Summary
      • Show Platform Syseeprom
      • Show Platform Temperature
    • Configuration Management
      • Copying Configuration from Switch
      • Copying Running and Startup Configuration
      • Saving Configuration
      • Display Configuration
      • Clearing Startup configuration
    • Zero Touch Provisioning
      • DHCP Discovery
      • ZTP Boot File
      • Enable ZTP
    • Troubleshooting
  • Aviz FlowVision Graphical User Interface Guide
    • FlowVision Controller Installation
      • FV ESXi Host Installation
      • FV VirtualBox Installation
    • System
      • Viewing the Dashboard
      • Accessing System and Device Information
      • Managing Topologies
      • Managing Devices
      • Viewing System Log
      • Managing Users
      • Performing Backup and Restore
      • Viewing Audit Logs
    • Configuration
      • Configuring Ports
      • Configuring Port Groups
      • Configuring Rule Templates
      • Configuring Flows
      • Configuring SNMP Trap
    • Statistics
      • Viewing Port Statistics
      • Viewing Flow Statistics
    • Help
  • REST API Guide
    • FLOW
    • Interface Management
    • Port Channel
    • LLDP
    • SNMP
    • System and Platform
    • Statistics
  • Use Cases
    • For Engineers
      • VxLAN Deployment (NVIDIA)
      • GTP Deployment
      • Truncation and Load Balancing
      • Ingress VLAN and Egress Tagging
      • Loopback-mode Port
      • VXLAN Stripping
      • VLAN Mode/Tag Actions
    • Command Reference
      • Converting Network-to-Tool port
      • Configuring 1G Electrical SFP
      • Enabling FlowVision On-box Support
  • Solution Integration
    • Network Visibility and Analysis with OPB, Arkime, Elasticsearch & Kibana
      • Installation Pre-Requisites
      • Solution Components
      • Configuring OPBNOS
      • Installing Arkime
      • Installing Kibana
      • Troubleshooting
  • Support
    • How to contact Aviz Networks Support?
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. REST API Guide

FLOW

The below API's are used to configure flows with rules. It creates a traffic stream between the network and tool port, the traffic can be managed by configuring rule(s) to permit/deny matching traffic

Configure Flow

Request URL

/api/config/flows

Description

Use this API to configure flow parameters for the open packet broker

Method

POST

Request Body

{

"alias" : "flow1",

"status" : "enable | disable",

"comment" : "test string",

"from" : ["Ethernet45_1"],

"to" : ["Ethernet46_1"],

"push-vlan" : "vlan-id",

"pop-vlan" : "enable | disable"

}

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request is processed successfully

Get Flow Information

Request URL

/api/info/flows

Description

Use this API to get the configured flow parameters

Method

GET

Request Body

NA

Response Body

{

"flow1": {

"name": "flow1",

"status": "enable",

"config_mgr": "Rest-API",

"to": [ "Ethernet46_1" ],

"comment": "vlan traffic test",

"from": [ "Ethernet45_1" ]

}

}

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • Response status in the pretty output format shown above

Configure Flow Rule

Request URL

/api/config/flow/<flow-name>/rules

Description

Use this API to configure the OPB rule specific parameters

Method

POST

Request Body

{

"rule_id" : "10",

"action" : "permit",

"comment" : "test",

"vlan" : "100",

"ethertype" : "0x8100",

"src_ip" : "1.1.1.1",

"src_mask" : "255.255.255.0",

"dst_ip" : "2.2.2.2",

"dst_mask" : "255.255.255.0",

"dscp" : "5",

"ttl" : "4",

"protocol" : "6",

"src_l4port" : "56",

"dst_l4port" : "78",

"tcpctl" : "0x5",

"tcpctl_mask" : "0xff",

"tosval" : "3",

"match_all" : "disable",

"counters" : "enable"

}

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • Response status in the pretty output format shown above

Get Flow Rule Information

Request URL

/api/info/flows/<flow-name>/rules

Or

/api/info/flows/<flow-name>/rules/<rule-id>

Description

Use this API to get the configured rules from the system

Method

GET

Request Body

NA

Response Body

{

"flow1|355": {

"ipdst": "2.2.2.2",

"src_mask": "255.255.255.0",

"match_all": "disable",

"comment": "Example-rule-created",

"ipsrc": "1.1.1.1",

"dst_mask": "255.255.255.0",

"map_name": "flow1",

"rule_id": "355",

"action": "permit",

"counters": "enable"

}

}

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Get Flow rule status

Request URL

/api/info/flows/<flow-name>/rules/<rule-id>/status

Description

Use this API to get the configured rules hardware status and packets from the system

Method

GET

Request Body

NA

Response Body

{

"map_name": "flow1",

"rule_id": "2",

"status": "Active",

"Total-packets": "0"

}

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Configure Flow Rule Override action

Request URL

/api/config/flows/<flow-name>/rules/<rule-id>/override

Description

Use this API to configure the OPB rule override actions

Method

POST

Request Body

{

"override-to": ["Ethernet12", "Ethernet4", "Ethernet8"],

"override-push-vlan-tag": "100",

"override-pop-vlan": "disable"

}

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Get Flow Rule Override action Information

Request URL

/api/info/flows/<flow-name>/rules/<rule-id>/override

Description

Use this API to get the configured rules override actions from the system

Method

GET

Request Body

NA

Response Body

{

"override-to": ["Ethernet12", "Ethernet4", "Ethernet8"],

"override-push-vlan-tag": "100",

"override-pop-vlan": "disable"

}

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Delete Flow Rule

Request URL

/api/config/flows/<flow-name>/rules/<rule-id>

Description

Use this API to delete the configured rule with id <rule-id> inside <flow-name>

Method

DELETE

Request Body

NA

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Delete Flow Rule Override action

Request URL

/api/config/flows/<flow-name>/rules/<rule-id>/override

Description

Use this API to delete the overrides configured on the map rule

Method

DELETE

Request Body

NA

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

Delete Flow

Request URL

/api/config/flows/<flow-name>

Description

Use this API to delete the configured <flow-name> in the system

Method

DELETE

Request Body

NA

Response Body

NA

Status code

  • SERVER_ERROR(500) if there is any error with the server

  • OK(200) if the request completes successfully

PreviousREST API GuideNextInterface Management

Was this helpful?