Browse Source

Use SDM advanced.

The SDM VLAN profile is broken prior to 16.8(1).  So use the advanced profile to avoid bricking the switch.
Joe Clarke 5 years ago
parent
commit
8221efeeed
1 changed files with 9 additions and 2 deletions
  1. 9 2
      eem/tm_sw_autoconf.tcl

+ 9 - 2
eem/tm_sw_autoconf.tcl

@@ -195,8 +195,15 @@ if { $config != {} } {
         error $result $errorInfo
     }
 
-    if { [catch {cli_exec $cli(fd) "sdm prefer vlan"} result] } {
-        error $result $errorInfo
+    set failed 0
+    if { [catch {cli_exec $cli(fd) "sdm prefer advanced"} result] } {
+	set failed 1
+    }
+
+    if { $failed == 1 || [regexp {% Invalid input} $result] } {
+	if { [catch {cli_exec $cli(fd) "sdm prefer vlan"} result] } {
+	    error $result $errorInfo
+	}
     }
 
     if { [catch {cli_exec $cli(fd) "end"} result] } {