Yang Data Models

This chapter contains the following:

Yang Data Model Support for Raw Socket Transport

Release 17.2.1 adds support for additional Yang Data Models. These additional models include Raw Socket Transport.

Yang Data Models can be found here:

https://github.com/YangModels/yang/tree/master/vendor/cisco/xe/1721

There are two feature modules available for raw socket that belong to the main Cisco-IOS-XE-native model. They are:

  • Cisco-IOS-XE-rawsocket.yang

  • Cisco-IOS-XE-rawsocket-oper.yang

The Cisco-IOS-XE-rawsocket-oper.yang module contains a collection of YANG definitions for Raw Socket Transport Configuration commands.

The module has the following corresponding CLI commands:

# encapsulation raw-tcp
# encapsulation raw-udp
# raw-socket packet-length <length>
# raw-socket packet-timer <timer>
# raw-socket special-char <value>
# raw-socket tcp server <port> <ip>
# raw-socket tcp idle-timeout <value>
# raw-socket tcp client <dest-ip> <dest-port>
# raw-socket tcp idle-timeout <timeout>
# raw-socket tcp tcp-session <value>
# raw-socket tcp dscp <value>
# raw-socket udp connection <dest-ip> <dest-port> <local_port>

The Cisco-IOS-XE-rawsocket-oper.yang module contains a collection of YANG definitions for Raw Socket Transport operational data.

The module has the following corresponding CLI commands:

# show raw udp statistics
# show raw tcp statistics
# show raw tcp session 
# show raw udp session 
# show raw tcp session local
# show raw udp session local

The following is a list of the Dependent Modules:

  • Cisco-IOS-XE-native

  • Cisco-IOS-XE-features

  • ietf-inet-types

  • Cisco-IOS-XE-interfaces

  • Cisco-IOS-XE-ip

  • Cisco-IOS-XE-vlan

  • ietf-yang-types @ (any revision)

  • cisco-semver