Skip to content

Commit

Permalink
Add junos_vrf vrf-table-label support (ansible#28727)
Browse files Browse the repository at this point in the history
* Added VRF Table Label Support

* Added table_label docs and set as default=true
  • Loading branch information
Brayneded authored and ganeshrn committed Aug 28, 2017
1 parent 3d46258 commit 335e804
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/ansible/modules/network/junos/junos_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
description:
- It configures VRF target community configuration. The target value takes
the form of C(target:A:B) where C(A) and C(B) are both numeric values.
table_label:
description:
- Causes JUNOS to allocate a VPN label per VRF rather than per VPN FEC.
This allows for forwarding of traffic to directly connected subnets, COS
Egress filtering etc.
aggregate:
description:
- The set of VRF definition objects to be configured on the remote
Expand Down Expand Up @@ -185,7 +190,8 @@ def main():
interfaces=dict(type='list'),
target=dict(type='list'),
state=dict(default='present', choices=['present', 'absent']),
active=dict(default=True, type='bool')
active=dict(default=True, type='bool'),
table_label=dict(default=True, type='bool')
)

aggregate_spec = deepcopy(element_spec)
Expand Down Expand Up @@ -227,6 +233,7 @@ def main():
('rd', 'route-distinguisher/rd-type'),
('interfaces', 'interface/name'),
('target', 'vrf-target/community'),
('table_label', {'xpath': 'vrf-table-label', 'tag_only': True}),
])

params = to_param_list(module)
Expand Down

0 comments on commit 335e804

Please sign in to comment.