# disconnect

The operation is used to disconnect the (previously connected) ports of a test component from the ports of another components - it is the opposite operation of connect.

- The operation has only an effect if the connection to be removed has been created beforehand.;

Related keywords:

- create
- mtc
- self

### disconnect (component_referenceA:port_referenceA , component_referenceB:port_referenceB);

- The disconnect keyword introduces the port disconnection. The indices A and B refer to the two sides of the existing connection.

- component_reference is one of the following:

  - a reference returned by the create operation,
  - the keyword self when referring to the component where disconnect is given,
  - the keyword mtc when referring to the main test component.

- port_reference points out the port to be disconnected.

Example:

disconnect(vc_component:Port1_PCO, self:Port3_PCO);

Port1_PCO of the component with the reference vc_component is disconnected from the port Port3_PCO of the own test component.

BNF definition of disconnect