Got it

What is OPS for CE series switches?

Created: Feb 8, 2020 02:50:38Latest reply: Feb 8, 2020 02:54:58 96 2 1 1
  Rewarded HiCoins: 5 (problem resolved)

Hello
What is OPS for CE series switches?

  • x
  • convention:

Featured Answers
MVE Created Feb 8, 2020 02:53:24 Helpful(1) Helpful(1)

Hello!
OPS (Open Programmability System) allows users to develop and deploy network management policies using open RESTful APIs. With the programmability, OPS implements rapid service expansion, automatic deployment, and intelligent device management, helping reduce network O&M costs and facilitate network operations.

To implement OPS, perform the following operations:
1. Make a Python script. You can use a Python script to manage system resources through open RESTful APIs, for example, configure IP addresses for interfaces, and enable/disable interfaces.
Upload the Python script to a device and install the script.
Configure an assistant, and bind a trigger condition as well as the Python script to the assistant. When the trigger condition is met, the device executes the Python script. If the Python script is not bound to an assistant, the script can also be manually executed.

The following example describes how to implement OPS.
As shown in the figure on the right, uplink of SwitchA needs to be monitored so that the SwitchA can automatically set the downlink to Down when the uplink is Down.

1. Perform the following steps:
Make a Python script. The script enables a device to automatically set a downlink interface to Down when it detects that an uplink interface is Down.
2. Upload the Python script to SwitchA and install the script.
<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] quit
ops install file shutdown.py
3. Configure an assistant on SwitchA, bind the trigger condition as an interface Down event, and configure the device to execute the Python script when the trigger condition is met.
<HUAWEI> system-view
[~SwitchA] ops
[~SwitchA-ops] assistant shutdownint
[*SwitchA-ops-assistant-shutdownint] condition alarm feature ifnet name linkDown
[*SwitchA-ops-assistant-shutdownint] execute 1 python shutdown.py
[*SwitchA-ops-assistant-shutdownint] commit

Best regards!
View more
  • x
  • convention:

Telecommunications%20and%20Electronics%20Engineer%2C%20with%208%20years%20of%20experience%20working%20with%20Huawei%20equipment.
All Answers
gabo.lr MVE Created Feb 8, 2020 02:53:24 Helpful(1) Helpful(1)

Hello!
OPS (Open Programmability System) allows users to develop and deploy network management policies using open RESTful APIs. With the programmability, OPS implements rapid service expansion, automatic deployment, and intelligent device management, helping reduce network O&M costs and facilitate network operations.

To implement OPS, perform the following operations:
1. Make a Python script. You can use a Python script to manage system resources through open RESTful APIs, for example, configure IP addresses for interfaces, and enable/disable interfaces.
Upload the Python script to a device and install the script.
Configure an assistant, and bind a trigger condition as well as the Python script to the assistant. When the trigger condition is met, the device executes the Python script. If the Python script is not bound to an assistant, the script can also be manually executed.

The following example describes how to implement OPS.
As shown in the figure on the right, uplink of SwitchA needs to be monitored so that the SwitchA can automatically set the downlink to Down when the uplink is Down.

1. Perform the following steps:
Make a Python script. The script enables a device to automatically set a downlink interface to Down when it detects that an uplink interface is Down.
2. Upload the Python script to SwitchA and install the script.
<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] quit
ops install file shutdown.py
3. Configure an assistant on SwitchA, bind the trigger condition as an interface Down event, and configure the device to execute the Python script when the trigger condition is met.
<HUAWEI> system-view
[~SwitchA] ops
[~SwitchA-ops] assistant shutdownint
[*SwitchA-ops-assistant-shutdownint] condition alarm feature ifnet name linkDown
[*SwitchA-ops-assistant-shutdownint] execute 1 python shutdown.py
[*SwitchA-ops-assistant-shutdownint] commit

Best regards!
View more
  • x
  • convention:

Telecommunications%20and%20Electronics%20Engineer%2C%20with%208%20years%20of%20experience%20working%20with%20Huawei%20equipment.
Ibtmontero Created Feb 8, 2020 02:54:58 Helpful(0) Helpful(0)

Posted by gabo.lr at 2020-02-08 02:53 Hello!OPS (Open Programmability System) allows users to develop and deploy network management polici ...
Thanks for your great answer!
View more
  • x
  • convention:

IT%20Engineer%2C%20with%2010%20years%20experience%20working%20in%20software%20development.%20Eager%20to%20know%20more%20about%20Huawei%20technology.

Comment

Comment
You need to log in to comment to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.