#1 default values

已關閉
p_kosyh1 年之前創建 · 1 條評論
module fx-sys {

  yang-version "1.1";
  namespace "http://test.ru/fx/yang/sys";
  prefix "sys";

  organization "TEST";
  contact "yang@test.ru";
  description "sys root module";

  container sys {
    leaf hostname {
       description "Set router host name";
       default "Cronix";
       type string;
     }
  }

}
$ klish
configure
set sys hostname cronix
commit
show -- here we will see

 sys { 
   hostname Cronix;
 }

Expected behavier: hide items that are in defaults.

``` module fx-sys { yang-version "1.1"; namespace "http://test.ru/fx/yang/sys"; prefix "sys"; organization "TEST"; contact "yang@test.ru"; description "sys root module"; container sys { leaf hostname { description "Set router host name"; default "Cronix"; type string; } } } ``` ``` $ klish configure set sys hostname cronix commit show -- here we will see sys { hostname Cronix; } ``` Expected behavier: hide items that are in defaults.
Serj Kalichev commented 1 年之前
所有者

I don't understand. You REALLY set the element by "set" command. Default is not a case. It has value set by user and show it.

I don't understand. You REALLY set the element by "set" command. Default is not a case. It has value set by user and show it.
pkun1 年之前 關閉
Sign in to join this conversation.
未選擇標籤
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容