Skip to content

Commit

Permalink
Merge pull request #332 from laurapanzariello/master
Browse files Browse the repository at this point in the history
Create bgp plugin for juniper
  • Loading branch information
Malinoski authored Mar 23, 2021
2 parents e603155 + 6f0514c commit 9ca8ba7
Show file tree
Hide file tree
Showing 7 changed files with 534 additions and 7 deletions.
7 changes: 7 additions & 0 deletions dev/load_example_environment.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,13 @@ VALUES
INSERT INTO `tipo_interface` (`tipo`)
VALUES ("access"), ("trunk");

INSERT INTO `variables` (`name`, `value`, `description`)
VALUES
(
'detailed_junos_log_level',
'ERROR',
'Used to disable logs for detailed and specific libs used in plugin Junos'
);



Expand Down
4 changes: 2 additions & 2 deletions networkapi/api_neighbor/v4/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def deploy_neighbor_v4(neighbor_id):

eqpt = get_v4_equipment(neighbor)

plugin = PluginFactory.factory(eqpt)
plugin = PluginFactory.factory(eqpt, bgp=True)
plugin.bgp().deploy_neighbor(neighbor)
neighbor.deploy()

Expand All @@ -639,7 +639,7 @@ def undeploy_neighbor_v4(neighbor_id):

eqpt = get_v4_equipment(neighbor)

plugin = PluginFactory.factory(eqpt)
plugin = PluginFactory.factory(eqpt, bgp=True)
plugin.bgp().undeploy_neighbor(neighbor)
neighbor.undeploy()

Expand Down
Loading

0 comments on commit 9ca8ba7

Please sign in to comment.