Greps through a YANG module, and takes out blocks matching a key.
curl -s https://www.yangcatalog.org/all_modules/[email protected] -O
./grepyang cancel-commit [email protected]
928: rpc cancel-commit {
929: if-feature "confirmed-commit";
930: description
931: "This operation is used to cancel an ongoing confirmed commit.
932: If the confirmed commit is persistent, the parameter
933: 'persist-id' must be given, and it must match the value of the
934: 'persist' parameter.";
935: reference
936: "RFC 6241, Section 8.4.4.1";
937: input {
938: leaf persist-id {
939: type string;
940: description
941: "This parameter is given in order to cancel a persistent
942: confirmed commit. The value must be equal to the value
943: given in the 'persist' parameter to the <commit>
944: operation. If it does not match, the operation fails
945: with an 'invalid-value' error.";
946: }
947: }
948: }
./grepyang input cancel-commit [email protected]
928: rpc cancel-commit {
937: input {
938: leaf persist-id {
939: type string;
940: description
941: "This parameter is given in order to cancel a persistent
942: confirmed commit. The value must be equal to the value
943: given in the 'persist' parameter to the <commit>
944: operation. If it does not match, the operation fails
945: with an 'invalid-value' error.";
946: }
947: }
948: }