nerdexam
Huawei

H12-891_V1.0 · Question #163

Huawei provides Python script templates for OPS functions. The main method code in the script template is as follows. Which of the following descriptions is wrong?

The correct answer is A. When executing a Python script on a local PC, the host value needs to be set to the IP address of. See the full explanation below for the reasoning.

SDN and Network Automation

Question

Huawei provides Python script templates for OPS functions. The main method code in the script template is as follows. Which of the following descriptions is wrong?

Exhibit

H12-891_V1.0 question #163 exhibit

Options

  • AWhen executing a Python script on a local PC, the host value needs to be set to the IP address of
  • Bops_conn = OPS Connection (host) means creating an instance of the OPS Connection class
  • Crsp_data = get_startup_info (ops_conn) means calling the get_startup_info method, which will
  • Dops_conn.Close() means closing the HTTP connection

How the community answered

(42 responses)
  • A
    83% (35)
  • B
    2% (1)
  • C
    10% (4)
  • D
    5% (2)

Topics

#OPS automation#Python scripting#HTTP connection#network automation

Community Discussion

No community discussion yet for this question.

Full H12-891_V1.0 Practice