#1 default values

Kapalı
p_kosyh tarafından 1 yıl önce kere açıldı · 1 yorum
Peter Kosyh 1 yıl önce olarak yorumlandı
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 1 yıl önce olarak yorumlandı
Sahibi

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.
Giriş yap bu konuşmaya katılmak için.
Etiket Yok
Kilometre Taşı Yok
Atanan Kişi Yok
2 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.