Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
ulg
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
labs
ulg
Commits
293a5ea6
Commit
293a5ea6
authored
Oct 26, 2012
by
Tomas Hlavacek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add custom ssh path and parameters for BIRD.
parent
08a8877b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/ulgbird.py
src/ulgbird.py
+7
-2
No files found.
src/ulgbird.py
View file @
293a5ea6
...
...
@@ -526,7 +526,7 @@ class BirdRouterRemote(ulgmodel.RemoteRouter,BirdRouter):
PS_KEY_BGP
=
'-bgppeers'
PS_KEY_RT
=
'-routetab'
def
__init__
(
self
,
host
,
user
,
password
=
None
,
port
=
22
,
commands
=
None
,
proto_fltr
=
None
,
asn
=
'My ASN'
,
name
=
None
,
bin_birdc
=
None
):
def
__init__
(
self
,
host
,
user
,
password
=
''
,
port
=
22
,
commands
=
None
,
proto_fltr
=
None
,
asn
=
'My ASN'
,
name
=
None
,
bin_birdc
=
None
,
bin_ssh
=
None
):
ulgmodel
.
RemoteRouter
.
__init__
(
self
)
self
.
setHost
(
host
)
self
.
setUser
(
user
)
...
...
@@ -546,6 +546,11 @@ class BirdRouterRemote(ulgmodel.RemoteRouter,BirdRouter):
else
:
self
.
bin_birdc
=
defaults
.
default_bin_birdc
if
(
bin_birdc
):
self
.
bin_ssh
=
bin_ssh
else
:
self
.
bin_ssh
=
defaults
.
bin_ssh
if
(
defaults
.
rescan_on_display
):
self
.
rescanHook
()
else
:
...
...
@@ -561,7 +566,7 @@ class BirdRouterRemote(ulgmodel.RemoteRouter,BirdRouter):
return
True
def
runRawCommand
(
self
,
command
,
outfile
):
p
=
pexpect
.
spawn
(
defaults
.
bin_ssh
+
' -p'
+
str
(
self
.
getPort
())
+
' '
+
str
(
self
.
getUser
())
+
'@'
+
self
.
getHost
()
+
' '
+
self
.
bin_birdc
)
p
=
pexpect
.
spawn
(
self
.
bin_ssh
+
' -p'
+
str
(
self
.
getPort
())
+
' '
+
str
(
self
.
getUser
())
+
'@'
+
self
.
getHost
()
+
' '
+
self
.
bin_birdc
)
# handle ssh
cs
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment