Class ManagedTePath

    • Constructor Detail

      • ManagedTePath

        public ManagedTePath​(ManagedTeNode teNode,
                             org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology> topology)
      • ManagedTePath

        public ManagedTePath​(ManagedTeNode teNode,
                             ConfiguredLsp lsp,
                             org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology> topology)
    • Method Detail

      • getTopology

        public org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology> getTopology()
      • sync

        public void sync()
        Mark this TE Path as synchronized and update the Data Store accordingly.
      • disabled

        public void disabled()
        Disabling this TE Path by marking it as Configured. Do not update the Data Store.
      • failed

        public void failed()
        Mark this TE Path as Failed.
      • isSent

        public boolean isSent()
      • checkReportedPath

        public PathStatus checkReportedPath​(ConfiguredLsp lsp)
        Compare the current TE Path against the reported LSP to determine if there are in Sync, need Update or considered as in Failure if already updated.
        Parameters:
        lsp - LSP that corresponds to the reported LSP
        Returns:
        new LSP status
      • unSetTriggerFlag

        public void unSetTriggerFlag()
        Reset Triggered Flag.
      • verifyVertex

        public boolean verifyVertex​(@Nullable ConnectedVertex next,
                                    @Nullable Vertex current)
        Description copied from interface: ConnectedVertexTrigger
        This method verifies the next Vertex attribute against the current one to determine if is necessary to launch correction which are left at the discretion of the class which implements this method.

        If current Vertex is null, this means that the Connected Vertex will be added in the Connected Graph. If next Connected Vertex is null, this means that the Connect Vertex will be deleted from the Connected Graph. Otherwise, this is an update of Vertex attributes.

        Specified by:
        verifyVertex in interface ConnectedVertexTrigger
        Parameters:
        next - Next Connected Vertex to be installed in the Connected Graph
        current - Current Vertex installed in the Connected Graph
        Returns:
        True if the Vertex need attention, false otherwise
      • verifyEdge

        public boolean verifyEdge​(@Nullable ConnectedEdge next,
                                  @Nullable Edge current)
        Description copied from interface: ConnectedEdgeTrigger
        This method verifies the next Edge attributes against the current one to determine if is necessary to launch correction which are left at the discretion of the class which implements this method.

        If current Edge is null, this means that the Connected Edge will be added in the Connected Graph. If next Edge is null, this means that the Connected Edge will be deleted from the Connected Graph. Otherwise, this is an update of Edge attributes.

        Specified by:
        verifyEdge in interface ConnectedEdgeTrigger
        Parameters:
        next - Next Connected Edge to be installed in the Connected Graph
        current - Current Edge attributes in the Connected Graph
        Returns:
        True if the Edge need attention, false otherwise
      • addPath

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddLspOutput>> addPath​(NetworkTopologyPcepService ntps)
        Call add-lsp RPC to enforce the LSP into the PCC. This action will trigger a PcInitiate message to the PCC.
        Parameters:
        ntps - Network Topology PCEP Service
        Returns:
        Add LSP Output to convey the RPC result
      • updatePath

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateLspOutput>> updatePath​(NetworkTopologyPcepService ntps)
        Call update-lsp RPC to enforce the LSP into the PCC. This action will trigger a PcUpdate message to the PCC.
        Parameters:
        ntps - Network Topology PCEP Service
        Returns:
        Update LSP Output to convey the RPC result
      • removePath

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveLspOutput>> removePath​(NetworkTopologyPcepService ntps)
        Call remove-lsp RPC to remove the LSP from the PCC. This action will trigger a PcInitiate message to the PCC with 'R' bit set.
        Parameters:
        ntps - Network Topology PCEP Service
        Returns:
        Remove LSP Output to convey the RPC result
      • addToDataStore

        public void addToDataStore()
        Add LSP components to the Operational Data Store.
      • updateToDataStore

        public void updateToDataStore()
        Update LSP components to the Data Store.
      • removeFromDataStore

        public void removeFromDataStore()
        Remove LSP components to the Data Store.