Skip to content

Commit

Permalink
Merge pull request #98 from ssasso/vmx_mgmnt_vrf
Browse files Browse the repository at this point in the history
vMX: support for management VRF
  • Loading branch information
hellt authored Dec 15, 2022
2 parents bd06b7f + d733261 commit 83b9754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vmx/docker/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ def bootstrap_config(self):
self.wait_write("set interfaces fxp0 unit 0 family inet address 10.0.0.15/24")
self.wait_write("delete interfaces fxp0 unit 0 family inet dhcp")
self.wait_write("delete system processes dhcp-service")
# set interface fxp0 on dedicated management vrf, to avoid 10.0.0.0/24 to overlap with any "testing" network
self.wait_write("set system management-instance")
self.wait_write("set routing-instances mgmt_junos description management-instance")
# allow NATed outgoing traffic (set the default route on the management vrf)
self.wait_write("set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop 10.0.0.2")
self.wait_write("commit")
self.wait_write("exit")
# write another exist as sometimes the first exit from exclusive edit abrupts before command finishes
Expand Down

0 comments on commit 83b9754

Please sign in to comment.