#1 default values

닫힘
p_kosyh1 년 전을 오픈 · 1개의 코멘트
Peter Kosyh 코멘트됨, 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 코멘트됨, 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.
pkun 1 년 전가 Close
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.