const char *parent_ifname;
struct interface_user parent_iface;
/* main interface that the interface is bound to */
struct device_user main_dev;
const char *parent_ifname;
struct interface_user parent_iface;
/* main interface that the interface is bound to */
struct device_user main_dev;
struct interface_ip_settings proto_ip;
struct interface_ip_settings config_ip;
struct vlist_tree host_routes;
struct interface_ip_settings proto_ip;
struct interface_ip_settings config_ip;
struct vlist_tree host_routes;
-struct interface *interface_alloc(const char *name, struct blob_attr *config);
-
-void interface_set_dynamic(struct interface *iface);
+struct interface *interface_alloc(const char *name, struct blob_attr *config, bool dynamic);
bool interface_add_alias(struct interface *iface, struct blob_attr *config);
void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state);
void interface_set_available(struct interface *iface, bool new_state);
bool interface_add_alias(struct interface *iface, struct blob_attr *config);
void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state);
void interface_set_available(struct interface *iface, bool new_state);
-int interface_set_up(struct interface *iface);
-int interface_set_down(struct interface *iface);
-void __interface_set_down(struct interface *iface, bool force);
+void interface_set_up(struct interface *iface);
+void interface_set_down(struct interface *iface);
+int interface_renew(struct interface *iface);
void interface_set_l3_dev(struct interface *iface, struct device *dev);
void interface_add_user(struct interface_user *dep, struct interface *iface);
void interface_remove_user(struct interface_user *dep);
void interface_set_l3_dev(struct interface *iface, struct device *dev);
void interface_add_user(struct interface_user *dep, struct interface *iface);
void interface_remove_user(struct interface_user *dep);
-int interface_add_link(struct interface *iface, struct device *dev);
-int interface_remove_link(struct interface *iface, struct device *dev);
-int interface_handle_link(struct interface *iface, const char *name, bool add);
+int interface_handle_link(struct interface *iface, const char *name, struct blob_attr *vlan, bool add, bool link_ext);
void interface_add_error(struct interface *iface, const char *subsystem,
const char *code, const char **data, int n_data);
int interface_add_data(struct interface *iface, const struct blob_attr *data);
void interface_add_error(struct interface *iface, const char *subsystem,
const char *code, const char **data, int n_data);
int interface_add_data(struct interface *iface, const struct blob_attr *data);