Associating a Network to a Policy—Juniper Networks Contrail
Associating Network Policies Overview
Contrail helps you create and manage virtual networks (VNs). By default, all traffic in a VN is isolated to that VN. Traffic can only leave a VN by means of network policies that are defined for the VN.
This procedure shows how to associate a network policy with a network, using the Juniper Networks Contrail interface.
If you did not associate an existing network policy when you created your virtual network, you can use the Network Policy(s) field in the Edit Network window, or you can use the Associate Networks field in the Edit Policy window to associate or disassociate network policies with networks. The following procedures demonstrate both methods.
Associating a Network Policy to a Network
This procedure shows how to attach (associate) a network policy to a network when starting from the Edit Network window.
- Select Configure > Networking > Networks; see Figure 1.
Make sure your project is the active project in the upper right.
Figure 1: Configure > Networking > Networks

- Select the network you want to associate with a policy,
then in the Action column, click the gear wheel icon and
select Edit.
The Edit Network window for the selected network is displayed; see Figure 2.
Figure 2: Edit Network

- Click the Network Policy(s) field to show a
list of existing policies, and then select a policy to associate with
the selected network.
You can also disassociate a selected policy by clicking the - next to its name when it appears configured in the Network Policy(s) field.
- When you are finished, click Save, or click Cancel to undo your selections.

