Skip to content
Snippets Groups Projects
Commit 5f99d68f authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

fixed juniper factory after merge

parent 1c0e20b0
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
This commit is part of merge request !122. Comments created here will be created in the context of that merge request.
......@@ -148,7 +148,7 @@ def juniper_router_subscription_factory(site_subscription_factory, faker):
router_lo_iso_address = router_lo_iso_address or faker.word()
router_site = router_site or site_subscription_factory()
product_id = subscriptions.get_product_id_by_name(ProductType.JUNIPER_ROUTER)
product_id = subscriptions.get_product_id_by_name(ProductType.ROUTER)
router_subscription = RouterInactive.from_product_id(product_id, customer_id=CUSTOMER_ID, insync=True)
router_subscription.router.router_fqdn = router_fqdn
router_subscription.router.router_ts_port = router_ts_port
......@@ -158,6 +158,7 @@ def juniper_router_subscription_factory(site_subscription_factory, faker):
router_subscription.router.router_lo_iso_address = router_lo_iso_address
router_subscription.router.router_role = router_role
router_subscription.router.router_site = Site.from_subscription(router_site).site
router_subscription.router.vendor = RouterVendor.JUNIPER
router_subscription = SubscriptionModel.from_other_lifecycle(router_subscription, SubscriptionLifecycle.ACTIVE)
router_subscription.description = description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment