这种文件格式有标准吗?

这种文件格式有标准吗?

我运行的是 Ubiquity Edge 路由器,它本身基于维亚塔(没关系,只是以防万一有人知道该产品)。

配置文件如下所示

(...)
service {
    dhcp-server {
        disabled false
        global-parameters "option rfc3118-auth code 90 = string;"
        global-parameters "option SIP code 120 = string;"
        global-parameters "option Vendor-specific code 125 = string;"
        hostfile-update disable
        shared-network-name LAN {
            authoritative disable
            subnet 192.168.10.0/24 {
                default-router 192.168.10.1
                dns-server 192.168.10.1
                domain-name example.com
                lease 86400
                ntp-server 192.168.10.1
                start 192.168.10.50 {
                    stop 192.168.10.254
                }
                static-mapping domotique {
                    ip-address 192.168.10.5
                    mac-address 26:e9:0c:53:40:41
                }
(...)

有人知道这是否是一个众所周知的文件/内容格式标准吗?

它看起来像是 JSON 和 YAML 之间的连接点,我确信我已经在其他地方见过它。

答案1

我发现这里Vyatta 使用异或算法路由协议在过去(至少在过去……)可能就是这个 config 配置文件的起源。它使用XorpConfigParserperl 模块。但是我没能找到这种格式的名称。

维基百科文章关于 XORP 配置格式

Juniper 在 JUNOS 中使用了非常相似的配置格式,他们只是将其称为 cli 配置格式。现在他们也支持 JSON。

相关内容