Project

General

Profile

ConfigFileFormat » History » Version 1

Alex Afanasyev, 01/21/2014 04:54 PM

1 1 Alex Afanasyev
Config file format
2
==================
3
4
Initial state of NFD daemon is configured using the configuration file in YAML format.  The following shows an example configuration:
5
6
    # NFD configuration file sample with explanation
7
    # 
8
    # NFD uses YAML format configuration file.
9
    
10
    process:
11
      pidfile: /var/run/nfd.pid
12
    
13
    listeners: # define listeners
14
      unix: # name of listener, must be unique, to be referenced in other sections
15
        proto: unix # underlying protocol
16
        path: /var/run/nfd.sock # (UNIX) path
17
        face_auth: false # whether to require face authentication on new clients
18
      tcp:
19
        proto: tcp
20
        port: 6363 # (TCP) listen port
21
        face_auth: true
22
      udp:
23
        proto: udp
24
        port: 6363 # (UDP) listen port
25
        face_auth: false
26
      udp_mcast:
27
        proto: udp
28
        port: 56363
29
        face_auth: false
30
      ether:
31
        proto: ether
32
        dev: eth1 # (Ethernet) local NIC
33
        wire: ndnlp # wire protocol
34
        face_auth: false
35
    
36
    faces: # define outgoing faces
37
      -
38
        proto: tcp
39
        host: hub1.example.com # (TCP or UDP) remote host
40
        port: 6363 # (TCP or UDP) remote port
41
        prefix: # forward prefix registrations
42
          - /example
43
        reverse_prefix: # reverse perfix registrations
44
          - /example/hub1/home2
45
      -
46
        listener_key: udp_mcast
47
        mcast_group: 224.0.23.170 # multicast group; mutually exclusive with host
48
        port: 6363
49
      -
50
        listener_key: ether
51
        host: 01:01:01:01:01:01 # (Ethernet) remote host
52
    
53
    strategy: # define forwarding strategy for namespace
54
      /: # namespace
55
        original # strategy name
56
      /example/broadcast: # namespace
57
        bcast # strategy name