Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
some more fixes in the drivers
  • Loading branch information
danieltt committed Jun 20, 2012
1 parent 38b7ba3 commit 9a5f88e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/driver_mpls.py
Expand Up @@ -88,12 +88,13 @@ def mpls_remove_fns(desc):
# Get the router user name
r_uname = D.getRouterUserName(r_id)
vlan = libnetvirt.getVlanFromEp(ep)
pe_if = libnetvirt.getPortFromEp
vrf = 'vrf' + str(fns_id)

#Calling the scripts for configuration. Uncomment when the network is available
NM = NetworkManager(r_name, r_uname)
if NM != None:
NM.stop_configuration(vlan, vrf)
NM.stop_configuration(vlan, vrf,pe_if)
NM.close_ssh()
else:
print "Error in applying configuration"
Expand Down
5 changes: 3 additions & 2 deletions src/of-nox.c
Expand Up @@ -173,8 +173,9 @@ int close_con(int fd) {

int of_nox_connect(char* addr, int port) {

if (of_nox_info.run)
return -1;
if (of_nox_info.run){
of_nox_stop();
}
//printf("Connection OF-NOX driver to: %s:%d\n", addr, port);
of_nox_info.run = 1;
return start_server(addr, port);
Expand Down

0 comments on commit 9a5f88e

Please sign in to comment.