pybvc.netconfdev.vdx package

Submodules

pybvc.netconfdev.vdx.nos module

@authors: Sergei Garbuzov, Gary Berger @status: Development @version: 1.3.1

nos.py: Brocade VDX specific properties and communication methods

class pybvc.netconfdev.vdx.nos.NOS(ctrl, name, ip_address, port_number, admin_name, admin_password, tcp_only=False)

Bases: pybvc.controller.netconfnode.NetconfNode

Class that represents an instance of NOS (NETCONF capable server device). :param ctrl: pybvc.controller.controller.Controller :param string name: The name :param string ipAddr: The ip address :param int portNum: The port number to communicate NETCONF :param string adminName: The username to authenticate setup

of the NETCONF communication
Parameters:
  • adminPassword (string) – The password to authenticate setup of the NETCONF communication
  • tcpOnly (boolean) – Use TCP only or not.
Returns:

The newly created instance.

Return type:

:class:`pybvc.netconfdev.vdx.nos.NOS’

get_cfg()

Return configuration :return: A tuple: Status, JSON for configuration. :rtype: instance of the Result class (containing configuration data) - STATUS.CONN_ERROR: If the controller did not respond. - STATUS.CTRL_INTERNAL_ERROR: If the controller responded but did not

provide any status.
  • STATUS.OK: Success. Result is valid.

  • STATUS.HTTP_ERROR: If the controller responded with an error

    status code.

get_schema(schema_id, schema_version)

Return a YANG model definition for the indicated schema :param string schema_id: id of schema :param string schema_version: version of the schema :return: A tuple: Status, YANG model schema. :rtype: instance of the Result class (containing YANG schema) - STATUS.CONN_ERROR: If the controller did not respond. Schema is . empty. - STATUS.CTRL_INTERNAL_ERROR: If the controller responded but did not . provide any status. Schema is empty. - STATUS.OK: Success. Result is valid. - STATUS.DATA_NOT_FOUND: Data missing or in unexpected format. - STATUS.HTTP_ERROR: If the controller responded with an error

status code.
get_schemas()

Return a list of YANG model schemas implemented :return: A tuple: Status, list of YANG model schemas :rtype: instance of the Result class (containing JSON listing

information about the YANG schemas for the node)
  • STATUS.CONN_ERROR: If the controller did not respond. List is empty.

  • STATUS.CTRL_INTERNAL_ERROR: If the controller responded but did not

    provide any status. List is empty.

  • STATUS.OK: Success. List is valid.

  • STATUS.HTTP_ERROR: If the controller responded with an error

    status code.

to_json()

Returns JSON representation of this object.

to_string()

Returns string representation of this object.

pybvc.netconfdev.vdx.nos.get_interfaces_cfg(self)

Return the configuration for the interfaces on the VRouter5600 :return: A tuple: Status, configuration of the interfaces :rtype: instance of the Result class (containing configuration data) - STATUS.CONN_ERROR: If the controller did not respond. - STATUS.CTRL_INTERNAL_ERROR: If the controller responded but did not

provide any status.
  • STATUS.OK: Success. Result is valid.

  • STATUS.HTTP_ERROR: If the controller responded with an error

    status code.

pybvc.netconfdev.vdx.nos.get_interfaces_list(self)

Get the list of interfaces on the VRouter5600. :return: A tuple: Status, list of interface names. :rtype: instance of the Result class - STATUS.CONN_ERROR: If the controller did not respond. - STATUS.CTRL_INTERNAL_ERROR: If the controller responded but did not

provide any status.
  • STATUS.OK: Success. Result is valid.

  • STATUS.HTTP_ERROR: If the controller responded with an error

    status code.

Module contents