9ba91afa9b7549344a3b712c537d98d9fda34a6e
[netvirt.git] / elanmanager / impl / src / main / yang / elanmanager-config.yang
1 module elan-config {
2     yang-version 1;
3     namespace "urn:opendaylight:netvirt:elan:config";
4     prefix "elan-config";
5
6     description
7         "Configuration for elanmanager";
8
9     revision "2015-07-10" {
10         description
11                 "Initial revision";
12     }
13
14     container elan-config {
15         config true;
16         leaf auto-create-bridge {
17             description "If true, auto-create default bridge";
18             type boolean;
19             default true;
20         }
21         leaf int-bridge-gen-mac {
22             description "If true, generate a mac, else use the bridge generated mac";
23             type boolean;
24             default true;
25         }
26         leaf controller-max-backoff {
27             description "max_backoff in milliseconds for controller configured
28                 on OVS Bridge. A null value means use switch default";
29             type uint32 {
30                 range "1000..max";
31             }
32         }
33         leaf controller-inactivity-probe {
34             description "inactivity_probe timeout in milliseconds for
35                 controller configured on OVS Bridge.
36                 null - Use switch default
37                 0    - Disable inactivity probes";
38             type uint32;
39         }
40         leaf temp-smac-learn-timeout {
41             description "Temporary source MAC learning timeout";
42             type uint16;
43             default 10;
44         }
45         leaf arp-punt-timeout {
46             description "hard timeout value for learnt flows for arp punts (unit - seconds).
47                 To turn off the rate limiting and installation of learnt flows, it should be set to 0";
48             type uint32;
49             default 5;
50         }
51         leaf punt-lldp-to-controller {
52             description "Determines whether LLDP are punt to controller or dropped";
53             type boolean;
54             default false;
55         }
56         leaf auto-config-transport-zones {
57             description "Determines whether transport zones should be automatically created/updated";
58             type boolean;
59             default false;
60         }
61         leaf use-of-tunnels {
62             type boolean;
63             default false;
64         }
65         leaf openstack-vni-semantics-enforced {
66             type boolean;
67             default true;
68         }
69         leaf l2gw-stale-vlan-cleanup-delay-secs {
70             description "Stale vlan bindings cleanup delay after the southbound node is disconnected";
71             type uint16;
72             default 900;
73         }
74         leaf l2gw-logical-switch-delay-secs {
75             description "The delay after which logical switch is deleted after the l2gw connection is deleted";
76             type uint16;
77             default 20;
78         }
79     }
80 }