Class: YangNetconf

Inherits:
YangNetconfProperty show all
Defined in:
lib/puppet/property/yang_netconf.rb

Overview

This subclass of YangProperty manages YANG XML Netconf content.

Instance Method Summary collapse

Methods inherited from YangNetconfProperty

#insync?, #should, #yang_content

Instance Method Details

#inline_yang?(yang_or_file) ⇒ Boolean

Determine if the specified value is inline YANG or a file path

Returns:

  • (Boolean)


7
8
9
# File 'lib/puppet/property/yang_netconf.rb', line 7

def inline_yang?(yang_or_file)
  !/^</.match(yang_or_file).nil?
end