From 7445e7ae80aa291a816fdae5fbec0594401ea9c9 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 17 Mar 2018 12:13:43 +0100 Subject: restore backward compatibility with a supermicro shim --- lib/oxidized/model/supermicro.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/oxidized/model/supermicro.rb (limited to 'lib/oxidized/model/supermicro.rb') diff --git a/lib/oxidized/model/supermicro.rb b/lib/oxidized/model/supermicro.rb new file mode 100644 index 0000000..9cfa0a3 --- /dev/null +++ b/lib/oxidized/model/supermicro.rb @@ -0,0 +1,7 @@ +# Backward compatibility shim for deprecated model `supermicro`. +# Migrate your source from `supermicro` to `edgecos`. + +require_relative 'edgecos.rb' + +Supermicro = EdgeCOS + -- cgit v1.2.1 From 640bdb90f096334d3c6a6e2dd7fce8d34c1fba96 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 17 Mar 2018 12:44:01 +0100 Subject: complain when backward compatibility shim is used --- lib/oxidized/model/supermicro.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/oxidized/model/supermicro.rb') diff --git a/lib/oxidized/model/supermicro.rb b/lib/oxidized/model/supermicro.rb index 9cfa0a3..518ae41 100644 --- a/lib/oxidized/model/supermicro.rb +++ b/lib/oxidized/model/supermicro.rb @@ -5,3 +5,5 @@ require_relative 'edgecos.rb' Supermicro = EdgeCOS +Oxidized.logger.warn "Using deprecated model supermicro, use edgecos instead." + -- cgit v1.2.1 From d3c96a04c15ff0c6cae00d0721a6f5216357207f Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 17 Mar 2018 17:49:18 +0100 Subject: transition timos to sros --- lib/oxidized/model/supermicro.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/model/supermicro.rb') diff --git a/lib/oxidized/model/supermicro.rb b/lib/oxidized/model/supermicro.rb index 518ae41..56d5ef6 100644 --- a/lib/oxidized/model/supermicro.rb +++ b/lib/oxidized/model/supermicro.rb @@ -7,3 +7,4 @@ Supermicro = EdgeCOS Oxidized.logger.warn "Using deprecated model supermicro, use edgecos instead." +# Deprecated -- cgit v1.2.1