To solve this problem, the JUNOS software provides a soft interface construct called a container interface (see Figure 2).
Figure 2: Container Interface

The container interface allows routing protocols to run on the logical interfaces associated with a virtual container interface instead of on the physical SONET interfaces. When APS switches the underlying physical link based on a fault condition, the container interface remains up, and the logical interface on the container interface does not flap. The routing protocols remain unaware of the APS switching.