Skip to content

Commit

Permalink
xenserver: Add ovsdb_port variable to xapi configuration update plugin.
Browse files Browse the repository at this point in the history
The hardcoded ovsdb port causes problems when hooking up xenserver to
different SDN stacks.  Changing this to a variable at the start of the
script makes it easier to update this when needed (using chef/puppet/etc)

Signed-off-by: Sten Spans <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
sspans authored and blp committed Nov 23, 2015
1 parent 932104f commit cbe0336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ Simon Horman [email protected]
Simon Horman [email protected]
Sorin Vinturis [email protected]
Steffen Gebert [email protected]
Sten Spans [email protected]
Stephane A. Sezer [email protected]
Stephen Finucane [email protected]
SUGYO Kazushi [email protected]
Expand Down
3 changes: 2 additions & 1 deletion xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import re
vsctl = '/usr/bin/ovs-vsctl'
ofctl = '/usr/bin/ovs-ofctl'
cacert_filename = '/etc/openvswitch/vswitchd.cacert'
ovsdb_port = '6640'


# Delete the CA certificate, so that we go back to boot-strapping mode
Expand Down Expand Up @@ -224,7 +225,7 @@ def setControllerCfg(controller):
'/etc/xensource/xapi-ssl.pem',
'/etc/xensource/xapi-ssl.pem',
cacert_filename,
'--', 'set-manager', 'ssl:' + controller + ':6640'])
'--', 'set-manager', 'ssl:' + controller + ':' + ovsdb_port])


def vswitchCfgQuery(action_args):
Expand Down

0 comments on commit cbe0336

Please sign in to comment.