Browse Source

Move the SDM block out of config.

Both can be set independently.
Joe Clarke 5 years ago
parent
commit
0fbe7c4dd0
1 changed files with 14 additions and 14 deletions
  1. 14 14
      eem/tm_sw_autoconf.tcl

+ 14 - 14
eem/tm_sw_autoconf.tcl

@@ -195,20 +195,6 @@ if { $config != {} } {
         error $result $errorInfo
     }
 
-    if { $sdm != {} } {
-        if { [catch {cli_exec $cli(fd) "config t"} result] } {
-            error $result $errorInfo
-        }
-
-        if { [catch {cli_exec $cli(fd) "sdm prefer $sdm"} result] } {
-            error $result $errorInfo
-        }
-
-        if { [catch {cli_exec $cli(fd) "end"} result] } {
-            error $result $errorInfo
-        }
-    }
-
     if { [catch {cli_exec $cli(fd) "show switch | inc ^\\*"} result] } {
         error $result $errorInfo
     }
@@ -245,6 +231,20 @@ if { $config != {} } {
     }
 }
 
+if { $sdm != {} } {
+    if { [catch {cli_exec $cli(fd) "config t"} result] } {
+        error $result $errorInfo
+    }
+
+    if { [catch {cli_exec $cli(fd) "sdm prefer $sdm"} result] } {
+        error $result $errorInfo
+    }
+
+    if { [catch {cli_exec $cli(fd) "end"} result] } {
+        error $result $errorInfo
+    }
+}
+
 set md5 {}
 set verify_image {}