Skip to content

Commit

Permalink
Merge pull request #75 from upalatucci/set-inital-state
Browse files Browse the repository at this point in the history
Set initial interface state in nncp form
  • Loading branch information
openshift-merge-robot authored Aug 22, 2023
2 parents 96c45de + eb6fc31 commit 31f1712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/components/PolicyForm/PolicyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const PolicyForm: FC<PolicyFormProps> = ({ policy, setPolicy, createForm = false
draftPolicy.spec.desiredState.interfaces.unshift({
type: InterfaceType.LINUX_BRIDGE,
name: `interface-${draftPolicy.spec.desiredState.interfaces.length}`,
state: 'up',
});
});
};
Expand Down

0 comments on commit 31f1712

Please sign in to comment.