~mpontillo/maas/subnet-dhcp-dns-settings--bug-1600720

« back to all changes in this revision

Viewing changes to src/maasserver/static/js/angular/factories/vlans.js

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
        // Configure DHCP on the VLAN
69
69
        VLANsManager.prototype.configureDHCP = function(
70
 
            vlan, controllers, extra) {
71
 
            return RegionConnection.callMethod(
 
70
           vlan, controllers, extra) {
 
71
           return RegionConnection.callMethod(
72
72
                "vlan.configure_dhcp", {
73
73
                    "id": vlan.id,
74
74
                    "controllers": controllers,
76
76
                }, true);
77
77
        };
78
78
 
 
79
        // Disable DHCP on the VLAN
 
80
        VLANsManager.prototype.disableDHCP = function(vlan) {
 
81
            return RegionConnection.callMethod(
 
82
                "vlan.configure_dhcp", {
 
83
                    "id": vlan.id,
 
84
                    "controllers": []
 
85
                }, true);
 
86
        };
 
87
 
79
88
        // Create a VLAN.
80
89
        VLANsManager.prototype.create = function(vlan) {
81
90
            // We don't add the item to the list because a NOTIFY event will