python command reference

python hierarchy descriptions

This section provides the following python hierarchy descriptions:

configure python command hierarchy


    configure
      — python
          — python-policy
http2

python command descriptions

This section provides the following python command descriptions:

configure python command descriptions

http2

Syntax
  • http2 type direction direction script script-name
  • no http2 type direction direction
Context
  • [Tree] configure python python-policy http2
Description

This command configures a Python script for HTTP2 messages on Service Based Interfaces (SBI), such as N7, N10, N11, and N40.

The no form of this command removes the script for the specified direction.

Parameters
type
Specifies the message type to which the Python script is applied.
Values:
  • http2-request – HTTP/2 request message, including GET, POST, and PUT messages
  • http2-response – HTTP/2 response message
direction
Specifies the direction of the message.
Values:
  • ingress – the script is only applied to messages received by the MAG-c.
  • egress – the script is only applied to messages sent by the MAG-c.
script-name

Specifies the Python script name as defined using the configure python python-script command, up to 32 characters.