The display mode is the type of formatting that will be used when data is displayed, including YANG data nodes retrieved from a server.

It is set using the --display-mode CLI parameter or $$display-mode system variable.

The allowed values are:

  • "plain" : yangcli-pro config file format
  • "prefix" : yangcli-pro config file format with YANG module prefixes
  • "module" : yangcli-pro config file format with YANG module names
  • "xml" : XML format
  • "xml-nons": XML format without namespaces
  • "json" : JSON format
  • "cli" : yangcli-pro CLI display format


$$display-mode = plain (default)


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 2 for session 4 [default]: 

rpc-reply {
  data {
    netconf-state {
      datastores {
        datastore  candidate {
          name candidate
          last-modified 2018-02-01T03:04:21Z
        }
        datastore  running {
          name running
          last-modified 2018-02-01T03:04:21Z
        }
      }
    }
  }
}

andy@localhost>



$$display-mode = prefix


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 3 for session 4 [default]: 

nc:rpc-reply {
  data {
    ncm:netconf-state {
      datastores {
        datastore  candidate {
          name candidate
          timefilter:last-modified 2018-02-01T03:04:21Z
        }
        datastore  running {
          name running
          timefilter:last-modified 2018-02-01T03:04:21Z
        }
      }
    }
  }
}

andy@localhost> 



$$display-mode = module


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 4 for session 4 [default]: 

yuma-netconf:rpc-reply {
  data {
    ietf-netconf-monitoring:netconf-state {
      datastores {
        datastore  candidate {
          name candidate
          yuma-time-filter:last-modified 2018-02-01T03:04:21Z
        }
        datastore  running {
          name running
          yuma-time-filter:last-modified 2018-02-01T03:04:21Z
        }
      }
    }
  }
}

andy@localhost> 



$$display-mode = xml


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 5 for session 4 [default]: 

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
      <datastores>
        <datastore>
          <name>candidate</name>
          <last-modified xmlns="http://netconfcentral.org/ns/yuma-time-filter">2018-02-01T03:04:21Z</last-modified>
        </datastore>
        <datastore>
          <name>running</name>
          <last-modified xmlns="http://netconfcentral.org/ns/yuma-time-filter">2018-02-01T03:04:21Z</last-modified>
        </datastore>
      </datastores>
    </netconf-state>
  </data>
</rpc-reply>

andy@localhost> 



$$display-mode = xml-nons


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 6 for session 4 [default]: 

<rpc-reply>
  <data>
    <netconf-state>
      <datastores>
        <datastore>
          <name>candidate</name>
          <last-modified>2018-02-01T03:04:21Z</last-modified>
        </datastore>
        <datastore>
          <name>running</name>
          <last-modified>2018-02-01T03:04:21Z</last-modified>
        </datastore>
      </datastores>
    </netconf-state>
  </data>
</rpc-reply>

andy@localhost> 



$$display-mode = json


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 7 for session 4 [default]: 
{
  "yuma-netconf:rpc-reply": {
    "yuma-netconf:data": {
      "ietf-netconf-monitoring:netconf-state": {
        "datastores": {
          "datastore": [
            {
              "name":"candidate",
              "yuma-time-filter:last-modified":"2018-02-01T03:04:21Z"
            },
            {
              "name":"running",
              "yuma-time-filter:last-modified":"2018-02-01T03:04:21Z"
            }
          ]
        }
      }
    }
  }
}

andy@localhost> 



$$display-mode = cli


andy@localhost> sget /netconf-state/datastores

Filling container /netconf-state/datastores:
RPC Data Reply 8 for session 4 [default]: 

rpc-reply 
  data 
    netconf-state 
      datastores 
        datastore  candidate 
          last-modified 2018-02-01T03:04:21Z
        datastore  running 
          last-modified 2018-02-01T03:04:21Z

andy@localhost>